Add-Wsus
Dynamic
Category
Syntax
Add-WsusDynamicCategory
[-UpdateServer <IUpdateServer>]
-InputObject <IDynamicCategory>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
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.
Required Parameters
Specifies the type of the dynamic category to add. The acceptable values for this parameter are:
- ComputerModel
- Device
- Application
Type: | DynamicCategoryType |
Aliases: | Type |
Parameter Sets: | ComputerModel, Device, Application, Any |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the dynamic category object that this cmdlet adds to the server. To obtain a dynamic category, use the Get-WsusDynamicCategory cmdlet.
Type: | IDynamicCategory |
Position: | Named |
Default value: | None |
Accept pipeline input: | True (ByValue) |
Accept wildcard characters: | False |
Specifies the name of the dynamic category to add.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Optional Parameters
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
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 |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
IDynamicCategory
Outputs
IDynamicCategory