

You only need to specify the KB number as an argument to the KBArticleID parameter. To remove updates, use the Remove-WindowsUpdate cmdlet.

If ($null -eq (Get-Module -Name PSWindowsUpdate -ListAvailable) ) | Select-Object *|ft 6. Use this script to copy the module to the two specified remote servers: If you installed the Windows Update Management Module on your computer, you can install it remotely on other computers and / or servers. To use these functions, you will have to update PowerShell, or manually remove the line | Unblock-File from the PSWindowsUpdate.psm1 file. The point is that the module uses some functions that appeared only in PowerShell 3.0. In Windows 7 / Server 2008 R2, when importing a PSWindowsUpdate module, you may encounter an error like the following: The name “Unblock-File” is not recognized as the name of the cmdlet.

In this article, we will use Powershell for patch management. The PSWindowsUpdate module is especially valuable when used to manage Windows updates in the Core editions of Windows Server, which do not have a graphical interface, as well as when setting up a Windows image in audit mode. PSWindowsUpdate allows administrators to remotely check for updates on computers and workstations, install, remove and hide certain updates. The PSWindowsUpdate module is not built into Windows and it is a third-party module available in the Technet Script Gallery. Special PowerShell script - PSWindowsUpdate is a great way to run Windows updates remotely from the command line on a separate computer.
