O'Reilly logo

Citrix® XenApp® 6.5 Expert Cookbook by Esther Barthel MSc

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Monitoring the Citrix® License Server with PowerShell

This recipe will show you how to monitor the Citrix License Server and the percentage of available licenses with PowerShell.

How to do it...

To check the percentage of free licenses on the Citrix License Server, perform the following steps:

  1. Start Windows PowerShell by navigating to Start | All Programs | Accessories | Windows PowerShell.
  2. Check the available licenses by running the following PowerShell script:
    # Get Citrix License info
    $licensePool = Get-WmiObject  -Class "Citrix_GT_License_Pool" -ComputerName "CBDC01" -Namespace "root\CitrixLicensing"
    $licinfo=($licensePool | Select-Object @{n="Product";e={$_.PLD}},@{n="LicenseType";e={$_.LicenseType}},@{n="Installed";e={$_.Count}},@{n="Used";e={$_.InUseCount}},@{n="Free";e={$_.PooledAvailable}},@{n="Used%";e={[Math]::Round((($_.InUseCount/$_.Count)*100),2)}} ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required