You all might have come across the situation were you selected “Configure the farm later” while installing the Virtual Desktop Agent (PortICA) or during testing of XenDesktop, you have reinstalled your DDC and now the client is not associated with the XD farm anymore.
In general it is not that difficult to change / configure the Farm Identifier (HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\VirtualDesktopAgent\FarmGUID) manually on a client, but to do this, you have to logon to the XD AMC and sort out the Farm GUID in the (read only) farm information, copy it, paste it to the client and write it to the registry, which might take a minute or two…
To cut a long story short, I’ve written a small tool which browses the AD for XenDesktop Farms, shows you the human readable names of the farms and writes (after your selection) the GUID to the registry. After a reboot or restarting the Citrix Desktop Service you can (re)publish the desktop within the XD Farm.
Download here <-- Version 2.0 has been published. Please download from here: http://community.citrix.com/x/uoQNAg
I hope you find it as helpful as I do…
PS: If you feel the need for any other tool related to XenDesktop, just drop a comment here and I’ll see what I can do for you.
To satisfy the legal guys:
This software / sample code is provided to you “AS IS” with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the software / sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the software / sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the software / sample code. In no event should the software / code be used to support of ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE software / SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the software / code belongs to Citrix, any distribution of the code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the code.