


Get-WUInstall, Install-WindowsUpdate (alias for Get-WindowsUpdate –Install): Installs Windows updates. Invoke-WUJob: Invokes PSWindowsUpdate actions remotely.Ĭlear-WUJob: Clears the WUJob in Task Scheduler. Get-WUInstallerStatus: Gets Windows Update Installer Status, whether it is busy or not.Įnable-WURemoting: Enables firewall rules for PSWindowsUpdate remoting. Get-WUSettings: Gets Windows Update client settings. Get-WUHistory: Shows a list of installed updates. Remove-WindowsUpdate: Uninstalls an update.Īdd-WUServiceManage: Registers a new Windows Update API Service Manager. It lists, downloads, installs, or hides a list of updates meeting predefined requisites and sets the rules of the restarts when installing the updates. Get-WindowsUpdate: This is the main cmdlet of the module. Installed aliases and cmdlets can be displayed by typing Get-Command–module PSWindowsUpdate.Ī brief description of principal commands is described below: If the PowerShell setup is already configured to allow online downloads, the PSWindowsUpdate module can also be installed directly from the online repository (PSGallery) running Install-Module -Name PSWindowsUpdate. Install Import-Module -Name PSWindowsUpdate.Open an elevated PowerShell prompt and run Set-ExecutionPolicy RemoteSigned to allow the execution of scripts signed by a trusted publisher.Some browsers, like Internet Explorer, automatically replace the. **A NuGet package is a ZIP archive with some extra files. Create a new folder named “PSWindowsUpdate” in %WINDIR%\System32\WindowsPowerShell\v1.0\Modules and extract the content of the nupkg file.**Previous versions of the module are also available in the Microsoft Technet Gallery, but Microsoft has retired this repository and now remains in read-only mode. Download the latest PSWindowsUpdate version from the PowerShell gallery.

This module includes different cmdlets to manage the deployment of Windows updates from the command line. It can be downloaded from the PowerShell gallery, the most used repository for sharing PowerShell code. PSWindowsUpdate is a third-party module that is not integrated into Windows by default. The PowerShell Windows Update module, or PSWindowsUpdate, is one such tool. Although Microsoft eases these procedures through tools such as Windows Server Update Services (WSUS) or System Center Configuration Manager (SCCM), administrators still require command-line tools to automate the installation of the update in certain scenarios.

Installing Windows update patches has always been a tedious, complex, and long process. As is well known, keeping systems updated is essential to protecting enterprises from malicious attacks and security breaches that may compromise confidential information or even cause sensitive data losses.
