Skip to content

Latest commit

 

History

History
123 lines (90 loc) · 3.11 KB

File metadata and controls

123 lines (90 loc) · 3.11 KB
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

Set-WsusClassification

SYNOPSIS

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
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 (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

None

OUTPUTS

None

NOTES

RELATED LINKS

Where-Object

Get-WsusClassification