< Back

Set-WsusDynamicCategory

Thu Apr 04, 2019 5:42 am

NAME Set-WsusDynamicCategory



SYNOPSIS

Sets the synchronization status of a dynamic category.





SYNTAX

Set-WsusDynamicCategory [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable <String>]

[-UpdateServer <IUpdateServer>] -DynamicCategoryType {ComputerModel | Device | Application | Any} -Name <String> -Status

<WsusDynamicCategoryStatus> [<CommonParameters>]



Set-WsusDynamicCategory [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable <String>]

[-Status <WsusDynamicCategoryStatus>] [-UpdateServer <IUpdateServer>] -InputObject <IDynamicCategory> [<CommonParameters>]





DESCRIPTION

The Set-WsusDynamicCategory cmdlet sets the synchronization status of a dynamic category in a specified Windows Server Update Services (WSUS)

server.





PARAMETERS

-DynamicCategoryType <DynamicCategoryType>

Specifies the type of the dynamic category that this cmdlet modifies. The acceptable values for this parameter are:



-- ComputerModel

-- Device

-- Application



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-InformationAction [<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 [<String>]

Specifies an information variable.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-InputObject <IDynamicCategory>

Specifies a dynamic category object. This cmdlet modifies the synchronization settings for the dynamic category that this parameter specifies.

To obtain a dynamic category, use the Get-WsusDynamicCategory cmdlet.



Required? true

Position? named

Default value none

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Name <String>

Specifies the name of the dynamic category to modify.



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-Status <WsusDynamicCategoryStatus>

Specifies the update synchronization status for the dynamic category. The acceptable values for this parameter are:



-- Blocked. No updates are being synchronized for this dynamic category.

-- SyncUpdates. Updates are being synchronized for this dynamic category.



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-UpdateServer [<IUpdateServer>]

Specifies a WSUS server. This cmdlet modifies a dynamic category on the server that this parameter specifies. To obtain a server, use the

Get-WsusServer cmdlet. If you do not specify a value for this parameter, the cmdlet modifies dynamic categories on the local server.



Required? false

Position? named

Default value none

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

IDynamicCategory









OUTPUTS

None









Example 1: Set the synchronization status of a dynamic category



PS C:\\>Get-WsusDynamicCategory -DynamicCategoryType Device -Name "PCI/Device07" | Set-WsusDynamicCategory -Status Blocked



This command gets a dynamic category from the local server by using the Get-WsusDynamicCategory cmdlet. The command passes the dynamic category to

the current cmdlet by using the pipeline operator. The current cmdlet sets the synchronization status to Blocked. This value means that no updates

are synchronized for this dynamic category.







RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=789380

Add-WsusDynamicCategory

Get-WsusDynamicCategory

Remove-WsusDynamicCategory

Get-WsusServer