Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Set-WsusClassification

Set-WsusClassification

microsoft.updateservices.commands.dll

Synopsis

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

Syntax

Set-WsusClassification [-Disable] [-Classification] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Set-WsusClassification cmdlet enables or disables the category of updates (for example security or critical) to be synchronized.

Using this cmdlet without filtering results. The Get-WsusClassification cmdlet must be run, then the results are piped it into this cmdlet.

Using this cmdlet with filtered results. The Get-WsusClassification cmdlet must be run, then results are filtered using the Where-Object cmdlet and piped into this cmdlet.

Parameters

-Classification <WsusClassification>

Specifies the classification of updates that are to be synchronized. If the Disable parameter is used, then this parameter specifies the classification of updates that are not to be synchronized. This parameter value is piped from the Get-WsusClassification cmdlet.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-Disable <SwitchParameter>

Specifies that updates are not to be synchronized for the specified classification.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Confirm <SwitchParameter>

Prompts you for confirmation before running the cmdlet.

Aliases

None

Required?

false

Position

named

Default value

false

Accept pipeline input?

false

Accept wildcard characters?

false

-WhatIf <SwitchParameter>

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Aliases

None

Required?

false

Position

named

Default value

false

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type

None

Return Type

None

Notes

None

Examples

EXAMPLE 1

This example specifies that you do not want driver updates.

PS C:\> Get-WsusClassification | Where-Object –FilterScript {$_.Classification.Title -Eq "Drivers"} | Set-WsusClassification -Disable

Online Version
Where-Object
Get-WsusClassification