Force logoff XenApp 6/6.5 Session at Disconnect

Two ways to achieve this


    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.


    [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

Leave a comment

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

WordPress Appliance - Powered by TurnKey Linux