Link to home
Start Free TrialLog in
Avatar of itnifl
itniflFlag for Norway

asked on

Get Citrix farm version

Is there a way to get the Citrix farm version via the cmd terminal?
Avatar of Ayman Bakr
Ayman Bakr
Flag of United Arab Emirates image

Not that I know of; but you can do some scripting to retrieve this information - something which currently I don't know much on and thus can't help on ;)

However, you can get the XenApp Farm version by browsing to your servers in the AppCenter and looking at the 'version' column in the right pane. It will provide you with the farm version (actually the servers' XenApp versions) the servers are in. Hope this helps.
Avatar of itnifl

ASKER

The best thing is to retrieve the information via a script, I need it to execute either one script or the other depending on the farm version. I was thinking of doing that in batch, but I am open for other options. Doing it in powershell is problemativ since the citrix cmdlets are compatable only for 6.0 and above, while vbs works for 5.x and less. I need to determine the farm version/Citrix version used in the farm in the same way each time regardless of what farm version I am doing this in.
ASKER CERTIFIED SOLUTION
Avatar of Vijaya Reddy Pinnapa Reddy
Vijaya Reddy Pinnapa Reddy
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Add-PSSnapin Citrix.XenApp.Commands
Get-XAFarm

This will display farm name and version information

Note that this is only available in XenApp 6 and later versions
 

Reference:  http://forums.citrix.com/thread.jspa?threadID=263080
Avatar of itnifl

ASKER

"-Note that this is only available in XenApp 6 and later versions "

Yup, thats the problem. As stated, I need to get the farm version regardless of what farm I am in, the same way every time.
Avatar of itnifl

ASKER

http://support.citrix.com/article/CTX107570/

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\NewProductVersion


Thats the solution. I will read that key with a script, and the key will tell me the farm version.
I can do that on any version I might be on at any given moment, the same way each time.

With the farm version in hand, I can further decide the execution of other scripts etc.
Avatar of itnifl

ASKER

I didn't see your reply there elchuru, you came in before me. All honours to you!