< Back
Set-WsusClassification
Post
NAME Set-WsusClassification
SYNOPSIS
Sets whether the classifications of updates that WSUS synchronizes are enabled.
SYNTAX
Set-WsusClassification [-Disable] [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable
<System.String>] -Classification <WsusClassification> [-Confirm] [-WhatIf] [<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.
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 passed from the Get-WsusClassification cmdlet.
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.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-InformationAction [<System.Management.Automation.ActionPreference>]
Specifies how this cmdlet responds to an information event. The acceptable values for this parameter are:
-- Continue
-- Ignore
-- Inquire
-- SilentlyContinue
-- Stop
-- Suspend
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-InformationVariable [<System.String>]
Specifies an information variable.
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.Prompts you for confirmation before running the cmdlet.
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.Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
None
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.
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/p/?linkid=287833
Where-Object
Get-WsusClassification
SYNOPSIS
Sets whether the classifications of updates that WSUS synchronizes are enabled.
SYNTAX
Set-WsusClassification [-Disable] [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable
<System.String>] -Classification <WsusClassification> [-Confirm] [-WhatIf] [<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.
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 passed from the Get-WsusClassification cmdlet.
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.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-InformationAction [<System.Management.Automation.ActionPreference>]
Specifies how this cmdlet responds to an information event. The acceptable values for this parameter are:
-- Continue
-- Ignore
-- Inquire
-- SilentlyContinue
-- Stop
-- Suspend
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-InformationVariable [<System.String>]
Specifies an information variable.
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.Prompts you for confirmation before running the cmdlet.
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.Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
None
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.
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/p/?linkid=287833
Where-Object
Get-WsusClassification