Download full document:



Get-Licinventory

Gets License Inventory Data from the License Server

Syntax

Get-LicInventory [-AdminAddress] <String> [-CheckForSameSerialNumber] [-Locale <String>] [-CertHash <String>] [-Credentials <PSCredential>] [<CommonParameters>]

Detailed Description

Returns detailed information about licenses in the inventory of the server pointed to by the snapin

Parameters

Name Description Required? Pipeline Input Default Value
AdminAddress Specifies the Web Services for Licensing address of the License Server that the PowerShell Snap-in will connect to. Retrieve this address with Get-LicLocation. true true (ByValue)
CheckForSameSerialNumber Switch if present filters the Inventory result. false false False
Locale Language code of localized human readable strings. false false EN
CertHash Specifies the hash of the License Server certificate needing verification. false false
Credentials Specifies the username/password to be authenticated with the License Server. false false

Input Type

Return Values

Citrix.Licensing.Admin.Sdk.Wslinventory[]

Notes

If the command fails, one of the following errors is returned.
Error Codes
-----------
LicensingAdminStatus.UserNotAuthorized
The currently authenticated user is not authorized to perform this operation.
LicensingAdminStatus.CommunicationError
There was a problem communicating with the License Server.
LicensingAdminStatus.CitrixLicensingVendorOrServiceDown
The Vendor Daemon or Service is down or unresponsive.
LicensingAdminStatus.NoInventory
There was no available inventory on the specified License Server.
LicensingAdminStatus.LocaleUnsupported
The locale specified is not supported.
LicensingAdminStatus.UnknownError
An unexpected error occurred. For more details, see the Windows event logs on the controller.

Examples

Example 1

C:\PS>Get-LicInventory -AdminAddress https://licserver.mydomain.net:8083Queries the server https://licserver.mydomain.net:8083 for the License Data in its inventory<br>Output:<br>LicenseProductName : CITRIX<br>LocalizedLicenseProductName : Citrix Start-up License<br>LicenseEdition :<br>LicenseLocalizedEdition :<br>LicenseExpirationDate : 12/31/1999 7:00:00 PM<br>LicenseCustomerSuccessServicesDate : 12/31/2037 7:00:00 PM<br>LicenseType : SYS<br>LocalizedLicenseType : System<br>LicensesInUse : 0<br>LicensesAvailable : 4000<br>LicenseOverdraft : 0<br>LicenseModel :<br>LocalizedLicenseModel : Server<br>LicenseProductName : MPS<br>LocalizedLicenseProductName : Citrix XenApp (Presentation Server) Platinum<br>LicenseEdition : PLT<br>LicenseLocalizedEdition :<br>LicenseExpirationDate : 11/30/2011 7:00:00 PM<br>LicenseCustomerSuccessServicesDate : 11/30/2001 7:00:00 PM<br>LicenseType : Retail<br>LocalizedLicenseType : Retail<br>LicensesInUse : 0<br>LicensesAvailable : 0<br>LicenseOverdraft : 0<br>LicenseModel : CCU<br>LocalizedLicenseModel : Concurrent User