Windows server 2003 – How to check and reset RDP sessions via command line
Posted by aidas | Posted in Command line, Windows 2003 | Posted on 03-07-2009
0
Have you ever encountered this annoying window when trying to access Windows server 2003 via Remote Desktop connection?
It draws me mad every time i see it !
So i`ll show you how can we get rid of it in a few seconds.
Lets say that session limit was reached on server named “Testserver”.
Login to another Windows server 2003 in your domain, open command line and type:
query session /server:Testserver

Press “Enter”
In output you will get information about taken sessions: what user is using it, session ID and status.
If you want to reset specific session note session ID you are going to reset. Lets say ID number is 2.
Open command line and the type following:
reset session 2 /server:Testserver

Press “Enter”
Thats all ! The road is clear for now…

