Citrix: Configuring the Logoff Behavior of a Desktop Group in XenDesktop 5

Share Button

While building a PoC with Citrix PVS and XenDesktop 5 I noticed that my VM’s didn’t reboot after I logged off, so I found CTX127842 to change the Logoff behavior of a Desktop group in XenDesktop 5:

In XenDesktop 4, administrators configure the logoff behavior setting for a Desktop Group in the Delivery Services Console. This controls whether the desktop restarts when the user logs off (the default for pooled desktops) or does nothing as seen in the screen shot below. In XenDesktop 5, this setting is not available in the console and must be configured using the PowerShell SDK interface.



Note: The PowerShell statements shown below are capitalized for readability purposes only. PowerShell is mostly case insensitive.

  1. Start a PowerShell session on the XenDesktop 5 Controller by clicking the blue PowerShell icon on the taskbar or navigating to PowerShell through the Start Menu.
  2. Run the following command to load the Citrix modules.
    Add-PSSnapin Citrix.*
  3. Run the following command to list all of the Desktop Groups in the environment and their respective properties. The property you are concerned with is ShutdownDesktopsAfterUse.
  4. Run the following command to disable the restart of the desktop or use $true to enable it: 
    Set-BrokerDesktopGroup -Name “Desktop Group Name” -ShutdownDesktopsAfterUse $False

After changing the ShutdownDesktopsAfterUse to true using the command:

Set-BrokerDesktopGroup -Name “Desktop Group Name” -ShutdownDesktopsAfterUse $True

My desktops rebooted when logging of and my older configuration was restored.

Share Button

Leave a Reply