Citrix Chained Reboot Scripts, now supporting Citrix Cloud, Citrix Virtual Apps and Desktops (CVAD), and XenApp/XenDesktop 5, 6, 6.5, and 7.x!

Share Button

Updated 2018.12.22: Revision 1.9 Now Supports Citrix Cloud!

One script now works with all current and modern versions of XenApp, XenDesktop, Citrix Virtual Apps and Desktops (CVAD), and Citrix Cloud Virtual Apps and Desktops Service from 7.0 and later, through 1811.

In zero-downtime 24/7 environments with shift employees, customers rarely want users to be notified of scheduled or mandatory XenApp server reboots. As a result, most of these environments have reboots disabled or this process is done manually. Unfortunately, this isn’t a good process since the XenApp servers are susceptible to memory leaks which can lead to failure and poor performance. By utilizing the included Chained reboot scripts, environments can take advantage of N+1 overallocation by processing a single server reboot while maintaining the user load on remaining systems. This has been done in such a way that users are not kicked off the system for scheduled reboots.  Instead, the server is removed from load balancing until all sessions have been logged off. Once all sessions have been logged off, the server will go down for a reboot.

Share Button
  1. SivaSiva06-03-2017

    Works great, Thank you.

    For lines Tyron mentioned, I modified mine as

    $processes=((Get-CimInstance Win32_process -Filter “name = ‘powershell.exe'” | where {$_.commandline -like “*XenApp_XenDesktop7_Citrix_Chained_Reboot.ps1”} | measure).count)

  2. Tobias MayerTobias Mayer04-27-2017

    Were are using 7.13, sorry.

  3. Tobias MayerTobias Mayer04-27-2017

    thanks for the amazon script, we are using it since years in our XenApp 6.5 environment.

    I tested it with XenDesktop 7.9. Unfortunately the script is not working. In the eventlog you can see “Initiating reboot process on XXX\XXX”. But the server ist not rebooting. Also “XXX\XXX rebooted properly, load rebalanced. Proceeding with subsequent servers.” is logged, but the server has not booted.

    Any ideas?


  4. I’ve started testing the script in my 7.9 environment. So far so good. I’ll know better in a couple of days.

  5. SteveSteve03-05-2017

    Hello, We are running Build 2014.12.03 Revision 8 of this script in our Xenapp 6.5 farm and have noticed we’re only getting 43 of the 130 servers rebooted. We have them split in to 2 different Workergroups and do see them from each rebooted however just not all in each. Is it time upgrade the script or do we not have something set correctly to cover them all? Thanks!

Leave a Reply