Controlling Windows Update Using PowerShell

Using this PowerShell module, you can manage Windows Updates on client and server computers.

Rod Trent

June 23, 2014

1 Min Read
Controlling Windows Update Using PowerShell

Using PowerShell to manage Windows Updates on computers follows along the old "even if you could, should you?" adage. From a techie's perspective that answer is always a resounding "Yes!" In the movies, though, repercussions are always unexpected, usually dreadful, and most times hilarious.

Strap a bra on your head and create a woman using a computer? Of course. What could go wrong?

There are an overabundance of ways for managing updates on Windows computers. Microsoft System Center Configuration Manager, WSUS, GPO, and 3rd party vendors round out a pretty full stable of options. But, for PowerShell geeks these methods are boring.

Michael Gajda, Microsoft MVP, has developed a Windows Update PowerShell Module that can be used to manage the Windows Update service running on client and server computers. Using the module, you can check, download, install, or remove updates.

The module is up to version 1.5.1 and contains the following PowerShell functions:

  • Add-WUOfflineSync

  • Add-WUServiceManager

  • Get-WUHistory

  • Get-WUInstall

  • Get-WUInstallerStatus

  • Get-WUList

  • Hide-WUUpdate

  • Invoke-WUInstall

  • Get-WURebootStatus

  • Get-WUServiceManager

  • Get-WUUninstall

  • Remove-WUOfflineSync

  • Remove-WUServiceManager 

  • Update-WUModule 

You can download the module from the Microsoft Script Gallery: Windows Update PowerShell Module

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like