Preventing Pooled Desktop Shutdown Behavior

XenDesktop 5 doesn’t have an easy option to disable the shutdown on pooled desktops.  What that means is that every time a user logs off it will automatically reboot the desktop and rebuild it from the master image.  The problem is in the way Citrix implemented it.  Because this is a non-static desktop they assume you don’t care about a graceful logout/shutdown and if you have actions that are supposed to run at logoff or shutdown they may not execute properly.  The way to address this is of course through powershell as they note here:

  • Start a PowerShell session on XenDesktop 5 Controller by clicking the blue PowerShell icon on the taskbar or by navigating to PowerShell from the Start Menu.
  • Run the following command to load the Citrix Modules: ASNP Citrix.*
  • Run the following command to list all the Desktop Groups in the environment and the respective properties: Get-BrokerDesktopGroup
  • Run the following commands to either enable or disable the power action of the desktop, respectively: Set-BrokerDesktopGroup -Name “Desktop Group Name” -ShutdownDesktopsAfterUse $True Set-BrokerDesktopGroup -Name “Desktop Group Name” -ShutdownDesktopsAfterUse $False

One you have done this you can run Ge-BrokerDesktopGroup -name “whatever the name is” and see the property list for that desktop group.  It should say False for the ShutdownDesktopAfterUse property.  And there you go!  I do suggest that you find a way to implement your own shutdown task if you choose to disable this, since you want the desktops to reboot.  We are using Appsense to define a custom logoff action with a 15 second pause, but it could be done through Windows scripting as well.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">