Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Add-WsusDynamicCategory

Last Updated: 3/8/2017

SYNOPSIS

Adds a dynamic category to a WSUS server.

SYNTAX

ByObject

Add-WsusDynamicCategory [-UpdateServer <IUpdateServer>] -InputObject <IDynamicCategory> [-WhatIf] [-Confirm]
 [<CommonParameters>]

ByName

Add-WsusDynamicCategory [-UpdateServer <IUpdateServer>] -Name <String>
 -DynamicCategoryType <DynamicCategoryType> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

The Add-WsusDynamicCategory cmdlet adds a dynamic category to a Windows Server Update Services (WSUS) server.

In order to transfer dynamic categories from one update server to another, pass the results of the Get-WsusDynamicCategory cmdlet to the current cmdlet by using the pipeline operator.

EXAMPLES

Example 1: Add a dynamic category to the local WSUS server

PS C:\> Add-WsusDynamicCategory -DynamicCategoryType Device -Name "PCI/Device07" 
Name                                     Type                                     Status
----                                     ----                                     ------
PCI/Device07                             Device                                   True

This command adds a dynamic category named PCI/Device07 the local update server. The command specifies that they type is Device.

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DynamicCategoryType

Specifies the type of the dynamic category to add. The acceptable values for this parameter are:

  • ComputerModel
  • Device
  • Application
Type: DynamicCategoryType
Parameter Sets: ByName
Aliases: Type
Accepted values: ComputerModel, Device, Application, Any

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-InputObject

Specifies the dynamic category object that this cmdlet adds to the server. To obtain a dynamic category, use the Get-WsusDynamicCategory cmdlet.

Type: IDynamicCategory
Parameter Sets: ByObject
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Name

Specifies the name of the dynamic category to add.

Type: String
Parameter Sets: ByName
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-UpdateServer

Specifies the WSUS server to which this cmdlet adds the dynamic category. To obtain a server, use the Get-WsusServer cmdlet. If you do not specify a value for this parameter, the cmdlet adds the dynamic category to the local server.

Type: IUpdateServer
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: None
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.

INPUTS

IDynamicCategory

OUTPUTS

IDynamicCategory

NOTES

Get-WsusDynamicCategory

Remove-WsusDynamicCategory

Set-WsusDynamicCategory

Get-WsusServer

© 2017 Microsoft