Edit

Share via


Remove-WsusDynamicCategory

Removes a dynamic category from a WSUS server.

Syntax

ByObject

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

ByName

Remove-WsusDynamicCategory
    -Name <String>
    -DynamicCategoryType <DynamicCategoryType>
    [-UpdateServer <IUpdateServer>]
    [-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.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DynamicCategoryType

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

  • ComputerModel
  • Device
  • Application

Parameter properties

Type:DynamicCategoryType
Default value:None
Accepted values:ComputerModel, Device, Application, Any
Supports wildcards:False
DontShow:False
Aliases:Type

Parameter sets

ByName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:IDynamicCategory
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByObject
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Specifies the name of the dynamic category to remove.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:IUpdateServer
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

Object