Remove-CMCategory

Removes a configuration category in Configuration Manager.

Syntax

Remove-CMCategory
      [-CategoryType <CategoryType>]
      [-Confirm]
      [-DisableWildcardHandling]
      [-Force]
      [-ForceWildcardHandling]
      -Name <String[]>
      [-WhatIf]
      [<CommonParameters>]
Remove-CMCategory -CategoryType  [-Confirm] [-DisableWildcardHandling] [-Force]
 [-ForceWildcardHandling] [-WhatIf] []
Remove-CMCategory [-Confirm] [-DisableWildcardHandling] [-Force] [-ForceWildcardHandling] -Id 
 [-WhatIf] []
Remove-CMCategory [-Confirm] [-DisableWildcardHandling] [-Force] [-ForceWildcardHandling]
 -InputObject  [-WhatIf] []

Description

The Remove-CMCategory cmdlet removes a configuration category in Microsoft System Center Configuration Manager.

Examples

Example 1: Remove a configuration category

PS C:\> Remove-CMCategory -CategoryType "DriverCategories" -Force -Name "NewLaptopDriverSet"

This command removes the category named NewLaptopDriverSet from DriversCategories without prompting you for confirmation.

Required Parameters

-Id

Specifies an array of IDs of configuration categories.

Type:String[]
Aliases:CategoryInstanceUniqueid, CategoryId
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.

Type:IResultObject
Aliases:Category
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies an array of names of configuration categories.

Type:String[]
Aliases:LocalizedCategoryInstanceName, CategoryName
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-CategoryType

Specifies a category type. Valid values are: - UserCategories

  • BaselineCategories
  • DriverCategories
  • AppCategories
  • GlobalCondition
  • CatalogCategories
Type:CategoryType
Parameter Sets:UserCategories, BaselineCategories, DriverCategories, AppCategories, GlobalCondition, CatalogCategories, UserCategories, BaselineCategories, DriverCategories, AppCategories, GlobalCondition, CatalogCategories
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
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
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False