How to Query License Usage Through PowerShell command in DDC​

How to Query License Usage Through PowerShell command in DDC​

book

Article ID: CTX478182

calendar_today

Updated On:

Description

Admin needs to leverage PowerShell to get the usage of Citrix license in DDC.


Instructions

Here is the sample of PowerShell command to query the Citrix license usage from the DDC:
$lic_server = 'https://192.168.xx.xx:8083'
$cert = Get-LicCertificate -AdminAddress $lic_server
Get-LicusageDetails -AdminAddress $lic_server -ProductEditionModel XDT_PLT_UD -CertHash $cert.CertHash

Note: 

You may need to load the Snapins first (Add-PSSnapin Citrix.*)
Get-LicusageDetails is from the sdk of 1808, it is removed from the SDK document of 1912 and 2203.  But it still can be used.

"ProductEditionModel" is the requested license type

"lic_server" needs to be updated to the corresponding license server address   

It shows only usage details for User/Device model only.