Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Set-WsusClassification

Last Updated: 3/8/2017

SYNOPSIS

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
Parameter Sets: (All)
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Confirm

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

-Disable

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

-WhatIf

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

None

NOTES

Where-Object

Get-WsusClassification

© 2017 Microsoft