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)
- Nutanix AHV and Citrix MCS: Adding a persistent disk via Powershell – v2 - November 19, 2019
- Recovering a Protection Domain snapshot to a VM - September 13, 2019
- Checking power settings on VMs using powershell - September 11, 2019
- Updated: VM Reporting Script for Nutanix with Powershell - July 3, 2019
- Updated (again!): VM Reporting Script for Nutanix AHV/vSphere with Powershell - June 17, 2019
Leave a Reply