The easiest method is installing the adminpak.msi locally. You can find it in either servers system32 folder. This will add some new server utils in your Administrative tools folder. Just open Terminal Services Manager and connect to the machine in question to terminate the stale sessions. Problem with this method is that it only works if your local machine exists on the same domain as the server. So lets move on to the more realistic real world solutions.
Win2k, 2003 and XP all include some command line tools to get you through.
The first work as a team. qwinsta (Query WINdows STAtion) and rwinsta (Reset WINdows STAtion). To query a server you would use the following command.
It will return the rdp-tcp session ID's like so.
rdp-tcp#470 Emmet 2 Active rdpwd
rdp-tcp#471 Tony 3 Active rdpwd
So now we see that I am occupying session 2 and Tony is occupying session 3
Now I need to log out my old session using
Now I'm ready to log back in.
Another method is using tsdiscon. If you want to just disconnect a session and just make it inactive you could use...
The last option is a Win2003 option only. You can use console mode and remote into the desktop. Just type the following command line...
This will bring up remote desktop and you will now log in as console on the desktop regardless if the 2 session are filled or not. Then you can go to terminal services manager and reset or disconnect the old sessions.
Thats all for now. Hope this helps.