Get-CMCategory
Get-CMCategory
Gets configuration categories in Configuration Manager.
Syntax
Parameter Set: GetCategoryByName
Get-CMCategory [-CategoryType <CategoryType> {UserCategories | BaselineCategories | DriverCategories | AppCategories | GlobalCondition | CatalogCategories} ] [-Name <String[]> ] [ <CommonParameters>]
Parameter Set: GetCategoryById
Get-CMCategory [-Id <String[]> ] [ <CommonParameters>]
Detailed Description
The Get-CMCategory cmdlet gets configuration categories in Microsoft System Center 2012 Configuration Manager. Configuration categories offer an optional method of sorting and filtering configuration baselines and configuration items in System Center 2012 Configuration Manager and Configuration Manager reports.
Parameters
-CategoryType<CategoryType>
Specifies a category type. Valid values for this parameter are:
-- BaselineCategories
-- DriverCategories
-- AppCategories
-- GlobalCondition
-- CatalogCategories
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Id<String[]>
Specifies an array of IDs of configuration categories.
Aliases |
CategoryinstanceUniqueid |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Name<String[]>
Specifies an array of names of configuration categories.
Aliases |
LocalizedCategoryInstanceName |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Get configuration categories by using a name
This command gets configuration driver categories in Configuration Manager that have the name NewLaptopDriverSet.
PS C:\> Get-CMCategory -CategoryType "DriverCategories" -Name "NewLaptopDriverSet"