Set-WsusClassification
Sets whether the classifications of updates that WSUS synchronizes are enabled.
Syntax
Set-WsusClassification
-Classification <WsusClassification>
[-Disable]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Set-WsusClassification cmdlet enables or disables the category of updates, for example, security or critical, to be synchronized.
To use this cmdlet without filtering results, the Get-WsusClassification cmdlet must be run, then the results are passed it into this cmdlet.
To use this cmdlet with filtered results, the Get-WsusClassification cmdlet must be run, then results are filtered using the Where-Object cmdlet and passed into this cmdlet.
Examples
Example 1: Disable driver updates
PS C:\> Get-WsusClassification | Where-Object -FilterScript {$_.Classification.Title -Eq "Drivers"} | Set-WsusClassification -Disable
This command specifies that you do not want driver updates.
Parameters
-Classification
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 passed from the Get-WsusClassification cmdlet.
Type: | WsusClassification |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Disable
Specifies that updates are not to be synchronized for the specified classification.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Microsoft.UpdateServices.Commands.WsusClassification