Remove-WsusDynamicCategory
Removes a dynamic category from a WSUS server.
Syntax
Remove-WsusDynamicCategory
[-UpdateServer <IUpdateServer>]
-InputObject <IDynamicCategory>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-WsusDynamicCategory
[-UpdateServer <IUpdateServer>]
-Name <String>
-DynamicCategoryType <DynamicCategoryType>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Remove-WsusDynamicCategory cmdlet removes a dynamic category from a Windows Server Update Services (WSUS) server.
Examples
Example 1: Remove a dynamic category
PS C:\> Remove-WsusDynamicCategory -DynamicCategoryType Device -Name "PCI/Device07"
This command removes a dynamic category named PCI/Device07 of the Device type from the local update server.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DynamicCategoryType
Specifies the type of the dynamic category to remove. The acceptable values for this parameter are:
- ComputerModel
- Device
- Application
Type: | DynamicCategoryType |
Aliases: | Type |
Accepted values: | ComputerModel, Device, Application, Any |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Specifies a dynamic category object. This cmdlet removes the dynamic category that this parameter specifies. To obtain a dynamic category, use the Get-WsusDynamicCategory cmdlet.
Type: | IDynamicCategory |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Specifies the name of the dynamic category to remove.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UpdateServer
Specifies a WSUS server. This cmdlet removes a dynamic category from 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 removes dynamic categories from the local server.
Type: | IUpdateServer |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None