Get-CMCategory

Gets configuration categories in Configuration Manager.

Syntax

Get-CMCategory
   [-CategoryType <CategoryType>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-Name <String>]
   [<CommonParameters>]
Get-CMCategory [-DisableWildcardHandling] [-ForceWildcardHandling] -Id  []

Description

The Get-CMCategory cmdlet gets configuration categories 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: Get configuration categories by using a name

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

This command gets configuration driver categories in Configuration Manager that have the name NewLaptopDriverSet.

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

Optional Parameters

-CategoryType

Specifies a category type. Valid values are: - BaselineCategories

  • DriverCategories
  • AppCategories
  • GlobalCondition
  • CatalogCategories
Type:CategoryType
Parameter Sets:UserCategories, BaselineCategories, DriverCategories, AppCategories, GlobalCondition, CatalogCategories
Required:False
Position:Named
Default value:None
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
-Name

Specifies an array of names of configuration categories.

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