Get-WUInstall with the WindowsUpdate or MicrosoftUpdate parameter

Get-WUInstall with the WindowsUpdate or MicrosoftUpdate parameter

You probably know the very good and very popular module of Michal GADJA named PSWindowsUpdate.

At the time of this writing, the latest version is 1.6.1.1 and can be downloaded from the Powershell Gallery here

I just wanted to add an undocumented behavior of the Get-WUInstall cmdlet.

If your computer is not configured to install updates from a WSUS server, you won’t notice any difference between these three command-lines:

  • Get-WUInstall
  • Get-WUInstall -WindowsUpdate
  • Get-WUInstall -MicrosoftUpdate

Conversely, if your computer is configured to install updates from a WSUS server, here is what happens:

  • Get-WUInstall installs all approved updates from the WSUS server
  • Get-WUInstall -WindowsUpdate installs all available updates from the WSUS server (even declined updates !!!)
  • Get-WUInstall -MicrosoftUpdate installs all available updates from Microsoft Update (the Microsoft online database).

More about

Microsoft Update

Windows Server Update Services (WSUS)(Microsoft Docs)

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s