Change logoff behavior for a XenDesktop Delivery Group

Purpose of this post

I will show you two way to change the logoff behavior for a Delivery Group in a XenDesktop 5 and above environment. You can choose between reboot the VM after the user logoff or not. By default XenDesktop set the behavior as follow:

  • Reboot for Delivery Groups containing Client OS (Win 7, Win 10, etc.)
  • Don’t reboot for Delivery Groups containing Server OS (Win Server 2008, Win Server 2012, etc.)

The easy way: use XDAS

XDAS Main FormI’ve developed an application called “XenDesktop Advanced Settings” (XDAS). Just download and run it following this guide, it’s free. As you will see, there is an intuitive GUI, so you just need to select the Delivery Group you want to change and set the logoff behavior as you wish. XDAS have other features you could find useful if you are a Citrix administrator.

The Powershell way:

There is already a good guide by Citrix, see CTX127842 , anyway you can find the steps below (I’ve done some changes to the original article):

  1. From any of your Delivery Controllers open Powershell console.
  2. Run the following command to load the Citrix Modules:
    Add-PSSnapin Citrix.*
  1. Run the following command to list all the Desktop Groups (aka Delivery Groups) name:
    Get-BrokerDesktopGroup -Property Name
  1. Run the following commands to either enable or disable the power action of the Desktop Group, respectively:
    Set-BrokerDesktopGroup -Name "Desktop Group Name" -ShutdownDesktopsAfterUse $True
    Set-BrokerDesktopGroup -Name "Desktop Group Name" -ShutdownDesktopsAfterUse $False

 

Leave a Reply

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