ICA Client Detection


06-27-2009

Downloads: 434
File size: 215 B
Views: 2,410

Embed
ICA Client Detection
  1. function Get-ICAClientVersion
  2.      
  3.     $ErrorActionPreference = "SilentlyContinue" 
  4.      
  5.     $ica = New-Object -ComObject 'Citrix.ICAClient' 
  6.      
  7.     if($ica
  8.     
  9.         return $ica.ClientVersion 
  10.     
  11.     else 
  12.     
  13.         return
  14.     
With a few lines of code you can check if an ICA Client is installed and, if yes, determine its version.
The attached ps1 file 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)
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.