Automatically terminate a disconnected RDP session

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”
Hope that helps out.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.