Windows Server Update Services (WSUS) Cmdlets in Windows PowerShell

Applies To: Windows 8, Windows Server 2012

Windows PowerShell® is a task-based command-line shell and scripting language designed especially for system administration. This reference topic for the information technology (IT) professional provides assistance in utilizing the Windows PowerShell cmdlets to script and automate tasks.

Windows Server Update Services (WSUS) Administration

This reference provides cmdlet descriptions and syntax for all Windows Server Update Services (WSUS) Administration-specific cmdlets. It lists the cmdlets in alphabetical order based on the verb at the beginning of the cmdlet.

cmdlet Description

Add-WsusComputer

Adds a specified client computer to a specified target group.

Approve-WsusUpdate

Approves an update to be applied to clients.

Deny-WsusUpdate

Declines the update for deployment.

Get-WsusClassification

Get the list of all Windows Server Update Services (WSUS) classifications currently available in the system.

Get-WsusComputer

Gets the Windows Server Update Services (WSUS) computer object that represents the client computer.

Get-WsusProduct

Get the list of all products currently available on Windows Server Update Services (WSUS) by category.

Get-WsusServer

Gets the value of the Windows Server Update Services (WSUS) update server object.

Get-WsusUpdate

Gets the Windows Server Update Services (WSUS) update object with details about the update.

Invoke-WsusServerCleanup

Performs the process of cleanup on a specified Windows Server Update Services (WSUS) server.

Set-WsusClassification

Sets whether the classifications of updates that Windows Server Update Services (WSUS) synchronizes are enabled or disabled.

Set-WsusProduct

Sets whether the product representing the category of updates to synchronize is enabled or disabled.

Set-WsusServerSynchronization

Sets whether the Windows Server Update Services (WSUS) server synchronizes from Microsoft Update, or an upstream server and the upstream server properties.

Note

To list all the cmdlets that are available, use the Get-Command *-Wsus* cmdlet.

For more information about, or for the syntax of, any of the cmdlets, use the Get-Help <cmdlet name> cmdlet, where <cmdlet name> is the name of the cmdlet that you want to research. For more detailed information, you can run any of the following cmdlets:

Get-Help <cmdlet name> -Detailed
Get-Help <cmdlet name> -Examples
Get-Help <cmdlet name> -Full

More Information

For more information about the cmdlets, see the following:

-