|

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

1 min read

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 Senior Technical Director — Performance & Solutions Engineering R&D at Nutanix, where he leads a global team responsible for defining how enterprise applications are delivered on the Nutanix platform. A former Citrix Technology Professional and NVIDIA Enterprise Platform Advisor, he has spent 15+ years driving EUC strategy and technical direction across architecture, product, and customer success. He has been writing here since 2011 — sharing what he learns at the intersection of platform engineering and enterprise IT.
Kees Baggerman

Kees Baggerman

Senior Technical Director at Nutanix - Former Citrix CTP - NVIDIA Enterprise Platform Advisor - 15+ years in EUC

Kees Baggerman is Senior Technical Director — Performance & Solutions Engineering R&D at Nutanix, where he leads a global team responsible for defining how enterprise applications are delivered on the Nutanix platform. A former Citrix Technology Professional and NVIDIA Enterprise Platform Advisor, he has spent 15+ years driving EUC strategy and technical direction across architecture, product, and customer success. He has been writing here since 2011 — sharing what he learns at the intersection of platform engineering and enterprise IT.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

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