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

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.

ctx008

Procedure

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

  • 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.
  • Run the following command to load the Citrix modules.
    Add-PSSnapin Citrix.*
  • 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.
    Get-BrokerDesktopGroup
  • 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.

The following two tabs change content below.

Kees Baggerman

Kees Baggerman is a Staff Solutions Architect for End User Computing at Nutanix. Kees has driven numerous Microsoft and Citrix, and RES infrastructures functional/technical designs, migrations, implementations engagements over the years.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.