I had several questions about this so I decided I should figure it out and Post. It was surprisingly simple. All I needed was the WMI provider and from there it was cake. If you’re curious how I figured out the WMI namespace I used WMI Explorer from MoW [CLICK HERE To Read about it].
The Output will look like this

Here is the Code
# Get-CitrixLicensing
Param($LicenseServer)
$licensePool = gwmi -class "Citrix_GT_License_Pool" -Namespace "ROOT\CitrixLicensing" -comp $LicenseServer
$licensePool | Select-Object @{n="Product";e={$_.PLD}},
@{n="Model";e={"Server"}},
@{n="Type";e={$_.LicenseType}},
@{n="Installed";e={$_.Count}},
@{n="In Use";e={$_.InUseCount}},
@{n="Available";e={$_.PooledAvailable}},
@{n="% in use";e={($_.InUseCount/$_.Count)*100}}
tshell :: May.08.2008 ::
All, Citrix ::
2 Comments »