I have a few Windows Server 2012 boxes that reside off domain and some of the folks who login remotely apparently haven’t figure out how to logoff correctly. For a domain connected server its pretty intuitive how to set this up. For non-domain its easy but you have to know where to go.
How to auto-terminate disconnected RDC sessions
1. At the run command or command window type gpedit.msc and hit enter.
2. Navigate to “Computer Configuration|Administrative Templates|Windows Components|Remote Desktop Services|Remote Desktop Session Host|Session Time Limits” in the left pane treeview.
3. Enable “Set time limit for disconnected sessions” and enter the time limit that fits your needs.
4. I also enable “Set time limit for active but idle sessions” and then “End session when time limits are reached”
1. At the run command or command window type gpedit.msc and hit enter.
2. Navigate to “Computer Configuration|Administrative Templates|Windows Components|Remote Desktop Services|Remote Desktop Session Host|Session Time Limits” in the left pane treeview.
3. Enable “Set time limit for disconnected sessions” and enter the time limit that fits your needs.
4. I also enable “Set time limit for active but idle sessions” and then “End session when time limits are reached”
Hope that helps out.