New-CMCategory

New-CMCategory

Creates a configuration category in Configuration Manager.

Syntax

Parameter Set: NewCategory
New-CMCategory -CategoryType <CategoryType> {UserCategories | BaselineCategories | DriverCategories | AppCategories | GlobalCondition | CatalogCategories} -Name <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The New-CMCategory cmdlet creates a configuration category in Microsoft System Center 2012 SP1 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 are:

-- BaselineCategories
-- DriverCategories
-- AppCategories
-- GlobalCondition
-- CatalogCategories

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies a name for the configuration category.

Aliases

LocalizedCategoryInstanceName

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

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

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

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: Create a configuration category

This command creates a new category in DriverCategories named NewLaptopDriverSet.

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

Remove-CMCategory

Get-CMCategory