Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We use Windows "Remote Desktop" to log into server machines. At the moment, I am getting the following error message:

The terminal server has exceeded the maximum number of allowed connections.

Now, the cause is obvious (2 other people are logged on right now!). I recall that in the past I solved this by logging on to some other machine in the same domain and then going to some admin tool which I cannot recall. From there I could see who was logged in and remotely terminate their session (assuming I had sufficient privileges) -- thereby freeing up one of the connections.

Does anyone know how to do this?

share|improve this question
add comment

5 Answers

up vote 13 down vote accepted

You can use Terminal Services Manager under Administrative Tools.

If you prefer a command-line solution, you can use this to list RDP sessions:

query session /server:servername

To reset a session, look for the relevant session ID in the "ID" column of the output from the above command, then use:

reset session <sessionid> /server:servername
share|improve this answer
    
Thanks! That worked great. –  mcherm Nov 5 '09 at 20:27
add comment

What you want is Terminal Services Manager

share|improve this answer
add comment

Also keep in mind that even though the remote server is not letting you RDP in normally, you can still hijack the console remotely:

To RDP to the Console of your remote server: from your client PC, open the CMD prompt and type: MSTSC /ADMIN (or if you are using an older RDP client, use MSTSC /CONSOLE)

This will allow you to remote logon to the console (and if necessary boot off anyone currently logged onto the console) - then you can use the Terminal Services Manager or Reset Session commands to boot off other RDP users...

share|improve this answer
add comment

You can also log via console using rdp and boot the users.

share|improve this answer
1  
the command for this is mstsc /console –  mrTomahawk Nov 5 '09 at 22:07
    
thanks for that, I only know under linux.. which is: rdesktop -0 –  Keiran Holloway Nov 5 '09 at 22:58
add comment

Also, terminal services licenses are reasonably inexpensive. If you switch to licensed mode, you can tell the server how many licenses you have, and it'll accept up to that many connections.

Note that terminal services licensing was on the honor system last time I checked (ie, the Windows Server doesn't actually check your license keys, it just takes your word for it that you have however many you tell it you have), but that's neither here nor there. ;)

share|improve this answer
1  
Not true. Terminal services licensing requires you to enter a valid key and activate each set of licenses. You also have to be running in Terminal Services Application Mode to utlized them. –  Erik Funkenbusch Nov 5 '09 at 21:35
    
Switching to application mode is not always desirable. –  John Gardeniers Nov 5 '09 at 22:19
    
Hrm. Last time I set up Application Server on 2003, it definitely didn't validate or verify the licenses, you could just bump up the number and it would happily give you more connections. We didn't exploit that since we had a good deal on the terminal services licenses anyways. Why is the switch to application mode undesirable, apart from having to actually buy more licenses. –  Graeme Nov 6 '09 at 16:19
    
Changing the institutional policy for how servers is managed is simply not an option for me, regardless of whether this would work. –  mcherm Nov 9 '09 at 13:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.