#Windows update catalog install
If you want to install pending updates, you have to save the result of Start-WUScan in a variable, as in the example above. Since the ComputerName parameter is not supported, you have to use the Invoke-Command: $u = Invoke-Command -ComputerName MyPC -ScriptBlock -Credential admin\contosoĪfter executing the command, the variable $u will contain all updates which match the search criteria. The permitted search criteria follow the syntax described in the API documentation, but Microsoft does not offer any specific information on WindowsUpdateProvider as a whole.Īs an alternative to the settings app, you can use Start WUScan to check for new updatesįor example, it is practical to query remote computers to find out whether a specific update is installed there. The only way to restrict the list is with SearchCriteria, which you have to pass a search expression: Start-WUScan -SearchCriteria "Type='Software' AND IsInstalled=0" If you don't specify any parameter, all updates that apply to the system will appear in the results. You cannot specify a source for updates rather, the function queries the update server configured on the computer.
Checking for updates ^Īs the name suggests, Start-WUScan looks for available updates. While Get-WULastInstallationDate and Get-WULastScanSuccessDate are used to examine previous updates, and Get-WUAVersion outputs the version of the client, the three remaining functions provide the actual update management. The functions of the WindowsUpdateProvider module use the methods of the CIM class MSFT WUOperations In addition, PowerShell is useful on Server Core because there is no GUI for managing updates. This is useful, for example, if you want to secure a freshly installed computer by installing the latest patches. More control over updates ^Ĭommand line tools such as usoclient.exe, wuinstall, or PowerShell cmdlets give admins more control over the update process because they can explicitly request the scan, download, install, or restart.
#Windows update catalog windows
However, it is not possible to copy Microsoft's Windows Update Provider to older versions of Windows, such as Server 2012 R2 or 2016, because the CIM class required by the functions does not exist on those versions. In contrast, third-party modules must first be installed on every managed PC. Therefore, when using it for remote management, you can assume that the required functions are already available on the target computer.
The main advantages of Windows Update Provider are its official support by Microsoft and that all newer versions of the operating system already have it on board.