If you are one who has ever faced issues due to people disconnecting from the Windows Terminal Server (RDP) and not logging off? Then here is a small change you can make and it will auto-log-off Users after specific interval of disconnection.

User > Properties > Session
Open Local Users and Groups, select User and then right click and open Properties window. Click on Sessions tab. It will show up screen similar to one above. Change "End a disconnected session: <N>" to specific time you want after which a disconnected User Session will be logged off.
So basically this is a small trick to avoid issues while Users tends to forget to log-off their sessions.
I have faced problems in the past when maximum limit for Users to connect comes to an end and you don't have any choice but to Restart the server, even "mstsc /console" don't work..! I had such experience with one of the dedicated Windows server on 1and1.com.
#1 by Michal on July 24, 2009 - 12:56 pm
Quote
Actualy there is yet one option how to shoot down the forgotten inactive sessions on the terminal server, even when you are not able to connect to the server that is affected, and you don’t even have to restart the server.
The trick is to log on to any machine in the domain with domain administrator privileged account, and to run these commands:
query session /server:servername
this will list all the sessions on the mentioned server, including their state, so you can choose which ID of the session is the correct one to kill in next step.
reset session [ID] /server:servername
this will kill the session marked by the ID obtained in the previous step. Once this command is finished, you should be good to go to log on the terminal server again.
Hope this will help someone, and prevent in such occassion to restart the server, when it is not needed.
#2 by Dharmavirsinh Jhala on July 26, 2009 - 1:04 pm
Quote
Thanks Michal.