Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Set-WsusProduct

Set-WsusProduct

microsoft.updateservices.commands.dll

Synopsis

Sets whether the product representing the category of updates to synchronize is enabled or disabled.

Syntax

Set-WsusProduct [-Disable] [-Product] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Set-WsusProduct cmdlet enables or disables the product representing the category of updates to synchronized. In order to use this cmdlet, the Get-WsusProduct cmdlet must be run (optionally using the Where-Object cmdlet to filter its results) with its results piped into this cmdlet.

Parameters

-Disable <SwitchParameter>

Specifies that updates are not to be synchronized for the specified product.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Product <WsusProduct>

Specifies the product for which the updates are to be synchronized. If the Disable parameter is used, then this parameter specifies the product for which the updates are not to be synchronized. This parameter value is piped from the Get-WsusProduct cmdlet.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-Confirm <SwitchParameter>

Prompts you for confirmation before running the cmdlet.

Aliases

None

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.

Aliases

None

Required?

false

Position

named

Default value

false

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type

None

Return Type

None

Notes

None

Examples

EXAMPLE 1

This example specifies that you want updates for the Antigen product.

PS C:\> Get-WsusServer | Get-WsusProduct | Where-Object –FilterScript {$_.product.title -Eq "Antigen"} | Set-WsusProduct

Online Version
Where-Object
Get-WsusProduct