Monitor Citrix Licenses In Use With Powershell

# Setup Variables
$Total = 0
$InUse = 0
$StrHost = "Localhost" 

# Get Citrix licensing Info
$licensePool = gwmi -class "Citrix_GT_License_Pool" -Namespace "Root\CitrixLicensing" -comp $StrHost

$LicensePool | ForEach-Object{ If ($_.PLD -eq "MPS_ADV_CCU"){
    $Total = $Total + $_.Count
    $InUse = $InUse + $_.InUseCount
    }
}

$PercentUsed = [Math]::Round($inuse/$total*100,0)
$Free = [Math]::Round($Total-$Inuse)

echo "Total: ",$Total
echo "In Use: ",$InUse
echo "Free: ",$Free
echo "Percent Used: ", $PercentUsed
No tips yet.
Be the first to tip!

Like this post? Tip me with bitcoin!

16U7NfcBCn6aGDzLysULKibYVPavnNCM7G

If you enjoyed reading this post, please consider tipping me using Bitcoin. Each post gets its own unique Bitcoin address so by tipping you're not only making my continued efforts possible but telling me what you liked.

VN:F [1.9.22_1171]
Rating: 6.0/6 (3 votes cast)

How to Deploy Citrix Receiver or Online Web Plugin for XenApp 6.5 on Web Interface 5.4

How to Deploy Citrix Receiver or Online Web Plugin for XenApp 6.5 on Web Interface 5.4:

If you are visiting your Web Interface with Web Interface 5.4.
You have probably noticed that it will show you a plugin install page like this, if you do not have the right web plugin installed:

The problem is when you click on the install button, it will redirect you to:

http://www.citrix.com/download/

And then you have to find the plugin yourself, thats not good enough!

So i will show you how to host the plugins on your Web Interface server, and let the “install button” download the right plugin to the user instead!

1. Connect to your Web Interface server and go to this folder:

“C:\Program Files (x86)\Citrix\Web Interface\5.4.0\Clients”

This folder will be empty like below:

2. Now find your xenapp 6.5 media / install folder and open the folder “Citrix Receiver and Plug-ins” , Copy everything from the folder in to “C:\Program Files (x86)\Citrix\Web Interface\5.4.0\Clients

3. Now go to your “Citrix Web Interface Management” and click “Client Deployment” on your XenApp website.
Make sure “Native client” are checked, and click on “Properties

4. Make sure “Perform client detection at logon” are Checked.
Also Check “Offer upgrades for clients” if you want it to offer the user to upgrade, if they use and older version.

5. Go to:

“C:\inetpub\wwwroot\Citrix\XenApp\conf”

And open the “Webinterface.conf” file in Notepad. Scroll down to the ICA clients section, they are all commented out default.


# ClientIcaLinuxX86=Filename:linuxx86-11.100.158406.tar.gz,Directory:Linux,Mui:Yes,Version:11.100
# ClientIcaMac=Filename:Citrix online plug-in (web).dmg,Directory:Mac,Mui:Yes
# ClientIcaSolarisSparc=Filename:solaris.tar.Z,Directory:Unix,Mui:No,Version:8.59
# ClientIcaSolarisX86=Filename:solx86.tar.Z,Directory:Unix,Mui:No,Version:8.5
# ClientIcaWin32=Filename:CitrixOnlinePluginWeb.exe,Directory:Windows,Mui:Yes,ClassID:238f6f83-b8b4-11cf-8771-00a024541ee3
# ClientStreamingWin32=Filename:CitrixOfflinePlugin.exe,Directory:Windows,Mui:Yes,ClassID:4384F3C5-4A9E-4E81-9AAE-4251C2813861

Replace it with this: (Make a backup of the file before you start editing it)

ClientIcaLinuxX86=Filename:linuxx86-11.100.158406.tar.gz,Directory:Linux,Mui:Yes,Version:11.100
ClientIcaMac=Filename:Citrix online plug-in (web).dmg,Directory:Mac,Mui:Yes
ClientIcaSolarisSparc=Filename:solaris.tar.Z,Directory:Unix,Mui:No,Version:8.59
ClientIcaSolarisX86=Filename:solx86.tar.Z,Directory:Unix,Mui:No,Version:8.5
ClientIcaWin32=Filename:CitrixReceiver.exe,Directory:Windows,Mui:Yes,ClassID:238f6f83-b8b4-11cf-8771-00a024541ee3
ClientStreamingWin32=Filename:CitrixOfflinePlugin.exe,Directory:Windows,Mui:Yes,ClassID:4384F3C5-4A9E-4E81-9AAE-4251C2813861

6. Make a iisreset

7. That`s it!
Now when you go to the web interface in your browser, you will notice the green Install button is there but there is also a little check box that says “I agree with the Citrix license agreement”.
This means the install file is being hosted on your Web interface server now. Check the box and click Install.

No tips yet.
Be the first to tip!

Like this post? Tip me with bitcoin!

1Ajr6cf8MFxwWDCNZbbPKdFNFQ6d1L2ZEN

If you enjoyed reading this post, please consider tipping me using Bitcoin. Each post gets its own unique Bitcoin address so by tipping you're not only making my continued efforts possible but telling me what you liked.

VN:F [1.9.22_1171]
Rating: 6.0/6 (11 votes cast)