Two ways to achieve this
- 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.
- 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]