Force logoff XenApp 6/6.5 Session at Disconnect

Two ways to achieve this

  1. http://support.citrix.com/article/CTX126775

    Computer Configuration/Administrative Templates/Windows Components/Remote Desktop Services/Remote Desktop Session Host/Session Time Limits/Set time limit for disconnected sessions

    The least one may set is 1 minute. But there are use cases where you may want this to happen right after disconnect. The next method achieves this.

  2. http://support.citrix.com/article/CTX127491

    Configure

    For x86:
    HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\SessionStateMonitor\DisconnectCommands=Shutdown -l -f
    For x64:
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432node\Citrix\SessionStateMonitor\DisconnectCommands=Shutdown -l -f
    

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s