New-CMCategory

Creates a configuration category in Configuration Manager.

Syntax

New-CMCategory
   -CategoryType <CategoryType>
   [-Confirm]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   -Name <String>
   [-WhatIf]
   [<CommonParameters>]

Description

The New-CMCategory cmdlet creates a configuration category in Microsoft System Center Configuration Manager. Configuration categories offer an optional method of sorting and filtering configuration baselines and configuration items in System Center Configuration Manager and Configuration Manager reports.

Examples

Example 1: Create a configuration category

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

This command creates a new category in DriverCategories named NewLaptopDriverSet.

Required Parameters

-CategoryType

Specifies a category type. Valid values are: - BaselineCategories

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

Specifies a name for the configuration category.

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

Optional Parameters

-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
-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