Get-CMAccessLicense

Get-CMAccessLicense

Gets license usage information.

Syntax

Parameter Set: ByValue
Get-CMAccessLicense -LicenseName <String> [ <CommonParameters>]

Parameter Set: ByCount
Get-CMAccessLicense -Count -LicenseName <String> [ <CommonParameters>]

Parameter Set: ByName
Get-CMAccessLicense -License [ <CommonParameters>]

Detailed Description

The Get-CMAccessLicense cmdlet gets license usage information for the servers and clients in the scope of System Center 2012 Configuration Manager. This cmdlet returns a list of features able to be licensed and a list of unique users and devices per licensable feature.

Parameters

-Count

Indicates that the cmdlet returns a count of unique users and devices for the specified licensable feature.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-License

Indicates that the cmdlet gets all licensable features for all of the servers and clients within the scope of System Center 2012 Configuration Manager. You can specify the name of the license that is returned for the LicenseName parameter to obtain the unique users and devices for that specific license.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-LicenseName<String>

Specifies the name of a licensable feature. If specified, the cmdlet gets only the unique users and devices for the specified license name. The acceptable values for this parameter are:

-- ConfigMgr_2012_CoreServer
-- ConfigMgr_2012_CoreClient
-- ConfigMgr_2012_EndpointClient

Aliases

none

Required?

true

Position?

named

Default Value

none

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: Get all licensable features for all servers and clients

This command gets all licensable features for all servers and clients within the scope of System Center 2012 Configuration Manager.

PS C:\> Get-CMAccessLicense -License

Example 2: Get the unique users, devices, and license-specific unique ID for a specified license

This command gets the unique users, devices, and license-specific IDs for the license named ConfigMgr_2012_EndPointClient.

PS C:\> Get-CMAccessLicense -LicenseName ConfigMgr_2012_EndPointClient