Skip to main content

Get-LXCALicensableDeviceCount

This cmdlet retrieves the number of managed devices that require licenses for advanced functions.

Note
You cannot pipe objects to this cmdlet.

Syntax

Get-LXCALicensableDeviceCount  [-Connection LXCAConnection] 
[CommonParameter]

Parameters

-Connection LXCAConnection
Specifies the connection to the Lenovo XClarity Administrator server. If no connection is specified, the result from the last Connect-LXCA cmdlet is used.
CommonParameters
This cmdlet supports the following common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable. For detailed information about each common parameter, see the Microsoft PowerShell Common Parameters webpage.

Results

This cmdelt returns the number of the managed devices that are subject to licensing.

For XClarity Administrator v2.7.0 and earlier, the NotSupportedException exception is thrown.

Examples

The following example returns the number of managed devices that are subject to licensing.

$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred

$deviceCount = Get-LXCALicensableDeviceCount

Disconnect-LXCA