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.
- 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.
- 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.
- 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.
Latest posts by Kees Baggerman (see all)
- NVIDIA GPU on AHV: The options (Video included) - December 6, 2017
- XenServer and Nutanix: Insights on the how - September 7, 2017
- Making sure your Citrix Desktops are utilized with Powershell v2 - September 6, 2017
- Protecting your Citrix desktops on Nutanix using powershell - August 4, 2017
- Citrix Provisioning on Nutanix AHV [Updated with PVS support for AHV] - June 28, 2017