I have a VPS which is limited to 2 concurrent TS sessions. At one point I was locked out from signing in, even though all my previous sessions were closed.
The provider indicated that the other sessions were still running, and they believe that I didn't actually "log off", so even if I exited the remote desktop client the server would still believe the connection was live.
I've never had this issue with a regular computer, when I kill the connection in any manner it always disconnects gracefully and doesn't lock me out.
- Does Windows 2003 have an issue with logging off properly when remote desktopping into it?
- How would I clear this error, or in other words if I need to can I kick off any current connections given that I have admin access?
- How do I check how many sessions are being used (assuming I can log in on a session)
- Can I load VNC as a 'backup' tool, or what other tools can I use to more fully protect myself from this issue?
-Adam
Use Terminal Services Manager (in Administrative Tools) to connect to the server and see which sessions are still used. You can reset and logoff existing sessions from there. Remember that just closing the terminal session window does not log the session off. There are times, also, when network hiccups will kick someone out of a session resulting in a dangling session. I've seen it frequently where a VPN user gets booted off the VPN connection while connected to a terminal session. This nearly always results in a dangling terminal session in my environment.
EDIT: If you don't have TS Manager installed, install the additional admin tools from AdminPak.msi which is located in \Windows\System32 on the server.
As for how to deal with this remotely, you could install CopSSH on the server then run cmd when you get to the shell.
Then you can use
query session
to get the session ID andlogoff
to log the session off.Like this:
On Server 2008 it has changed to Administrative Tools -> Remote Desktop Services -> Remote Desktop Services Manager
If you do not log of properly from an RDP session, but instead just close the window it will leave the session open, which is likely what is happening here.
If you are unabe to connect because there are too many sessions there are 2 options you can use to discconect these sessions:
you can connect directly to the console of the server using RDP, you can then use the Terminal Services Manager mmc to disconnect the other sessions. To connect to the console, run the following command from start->run. This will connect you directly to the console, and will log off anyone who is using it at the time.
mstsc /v:serverIP /admin
If you are on the same local network as the server and have the Server 2003 admin tools installed you can connect the Terminal Services Manager console to that server and disconnect the users from your desktop.
Thanks Sam and squillman. Poking around a bit more I found the following helpful information:
To make this a bit easier and more foolproof:
-Adam