external help file | Module Name | ms.date | online version | schema | title |
---|---|---|---|---|---|
Microsoft.UpdateServices.Commands.dll-Help.xml |
UpdateServices |
10/30/2017 |
2.0.0 |
Set-WsusClassification |
Sets whether the classifications of updates that Windows Server Update Services (WSUS) synchronizes are enabled or disabled.
Set-WsusClassification -Classification <WsusClassification> [-Disable] [-WhatIf] [-Confirm]
[<CommonParameters>]
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-Objecthttp://go.microsoft.com/fwlink/?LinkID=113423 cmdlet and piped into this cmdlet.
PS C:\> Get-WsusClassification | Where-Object -FilterScript {$_.Classification.Title -Eq "Drivers"} | Set-WsusClassification -Disable
This example specifies that you do not want driver updates.
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.
Type: WsusClassification
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Specifies that updates are not to be synchronized for the specified classification.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).