Set-WsusClassification
Sets whether the classifications of updates that Windows Server Update Services (WSUS) synchronizes are enabled or disabled.
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.
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.
Examples
EXAMPLE 1
PS C:\> Get-WsusClassification | Where-Object -FilterScript {$_.Classification.Title -Eq "Drivers"} | Set-WsusClassification -Disable
This example 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 piped 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
None
Outputs
None
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for