Friday, August 22, 2008

CTX: Detect Presentation Server or XenApp Version

Check the version of Citrix Presentation Server or Citrix XenApp in the following registry key:


This is a VB Script sample to detect the version of the Citrix server

-----START CODE Detect_CTX_Version.vbs-----

Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."

Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "SYSTEM\CurrentControlSet\Control\Citrix"
strValueName = "NewProductVersion"
oReg.GetExpandedStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue

WScript.Echo "Citrix Version Installed: " & strValue

-----END CODE Detect_CTX_Version.vbs-----

No comments: