How To Detect An ICA Client And Its Version Number?
Saturday, 27. June 2009 18:56
With a few lines of code you can check if an ICA Client is installed and, if yes, determine its version.
The code below defines a function Get-ICAClientVersion. The function returns the value of the "ClientVersion" property of the "Citrix.ICAClient" COM object, or returns 0 if the object is not present (that is no ICA Client 8 or higher installed)
function Get-ICAClientVersion
{
$ErrorActionPreference = "SilentlyContinue"
$ica = New-Object -ComObject 'Citrix.ICAClient'
if($ica)
{
return $ica.ClientVersion
}
else
{
return 0
}
}
Category:Scripting, Windows PowerShell | Comment (0) | Author: Frank-Peter