

Now that I can see what updates my machine is missing, I can use the -Install parameter to install the updates. In my example, I have the module installed on a workstation and I run the following syntax to get the list of windows updates applicable to my machine: Get-WindowsUpdate

We can use the Get-WindowsUpdate cmdlet to fetch a list of updates that are available for our machine. There are a numerous amount of actions we can perform with this module, but for this post, we will go over the basics. Now that we have the module installed we can now run Windows Updates via PowerShell.


If we want to save this module off and put it on a network share so that other servers can import and run this module, then we will use the save-module cmdlet: Save-Module -Name PSWindowsUpdate -Path Using PSWindowsUpdate To install PSWindowsUpdate, all we have to do, if we are running a Windows 10 OS, is open up a PowerShell cmd prompt and type in the following syntax: Install-Module -Name PSWindowsUpdate PSWindowsUpdate was created by Michal Gajda and is available via the PowerShell Gallery which makes installation a breeze. Luckily, with the magic of PowerShell and the help of the PowerShell module PSWindowsUpdate we can manage windows updates in an automated fashion allowing us to develop scripts that ease some of our Windows Update pains. Whether there is a bad patch that gets rolled out to a number of clients, or there is the never-ending burden of having to troubleshoot devices where Windows Patches just aren’t installing properly. No matter what patch management solution your using, it is inevitable that Windows Updates will still cause you headaches. However, there is a way to make the process less tedious: through automation.įor MSPs managing Windows Updates for clients is always messy. Let’s face it, no one likes Windows Updates – least of all Managed Service Providers.
