Set-WsusProduct

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

Syntax

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

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-Objecthttp://go.microsoft.com/fwlink/?LinkID=113423 cmdlet to filter its results) with its results piped into this cmdlet.

Examples

EXAMPLE 1

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

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

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
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 product.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Product

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.

Type:WsusProduct
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

None