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
    [code language=”text” highlight=”2,4″]
    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
    [/code]

Leave a comment

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

WordPress Appliance - Powered by TurnKey Linux