The terminal server has exceeded the maximum number of allowed connections

By: enj

This problem happens because Windows only allows two remote terminal services connections when you are in administrative mode, and you’ve either got two people already on that server, or more likely, you’ve got a disconnected session that still thinks it is active.

Here’s a command line hack that you can use to figure out what sessions are connected to the server. Note that you could substitute the IP address for the server name.

query session /server:servername

Sample output:

 

 

 

Now we know that the session ID of the offending session is 2. We can use that in the next step, which is using the reset command to log off that user.

reset session [ID] /server:servername

Sample:


This command won’t display any output, but when we run the query command again, we should see that the session has now been disconnected:

 

 

 

Now you can try to run Remote Desktop again!

Share!

2 Comments

  • Eri:

    Thanks bro, it helps me 🙂

  • Tasya:

    😛 sangat membantu banget nih. Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

User Online

Back to Top
Get Adobe Flash player