< Back

Set-WsusProduct

Thu Apr 04, 2019 5:42 am

NAME Set-WsusProduct



SYNOPSIS

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





SYNTAX

Set-WsusProduct [-Disable] [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable

<System.String>] -Product <WsusProduct> [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Set-WsusProduct cmdlet enables or disables the product representing the category of updates to synchronize. In order to use this cmdlet, the

Get-WsusProduct cmdlet must be run with its results passed into this cmdlet. You can run the Where-Object cmdlet to filter results.





PARAMETERS

-Disable [<SwitchParameter>]

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



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



-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 passed from the Get-WsusProduct cmdlet.



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.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: Specify updates for a product



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



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







RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=287834

Where-Object

Get-WsusProduct

Get-WsusServer