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

Terminal Server Error Message

When a user establishes a Remote Desktop connection to the WHS this connection will remain active until the user selects “Log Off” from the Start Menu. If a user simply closes the remote desktop window when they’re finished, that username will still remain logged on.

The software running on the WHS to facilitate the Remote Desktop connection will only allow for up to two simultaneous sessions. Active and disconnected sessions are calculated in this connection limit as is the Administrator account also. The console session, however, does not count against the connection limit.

If a third attempt is made to login to the server, the dreaded “The terminal server has exceeded the maximum number of allowed connections” error will be shown to the user, and they will be unable to complete the login process. You can’t even connect to disconnect the old sessions BUT there is a way around this:

Simply click OK to the error message and wait for unto 30 seconds for the window to close then simply type the following in a Start - RUN or CMD Prompt on your client machine.

mstsc /v:00.00.00.00 /f -console
 
Replace 00.00.00.00 with your server’s IP Address or server name. e.g.SERVER

Type in your administrator password. This will then connect you to the Console Session on the server and allow you to remote control the machine again.

Once in Click Start, point to All Programs, point to Administrative Tools, and then  click Terminal Services Manager.

In the left hand column you should see your server name. Click on it once. Note the Users Tab in the right pane.

You should see a list of users. You need to reset the two “Disconnected” users. You can do this by right clicking the disconnected user and selecting “Reset.” You should now be able to connect with RDP again after Start - Log Off.

When logging in under this special Console session always kill the inactive sessions first, because if you get disconnected again you will have to connect your monitor, keyboard and mouse.

Only use this session to terminate the other two sessions and not for any other use.

In future when you are done with a Remote Desktop session on WHS, you should always use “Log Off” rather than disconnecting by closing the RD window with the X as this will disconnect from the session but leave it active.

69.png

P.S. You could also use the easy option and just reboot the Windows Home Server.

29 Responses to “ERROR The terminal server has exceeded the maximum number of allowed connections”

  1. markvader Says:

    Is it possible to increase the number of allowed connections to a higher number, e.g. 5 to decrease the liklihood that you would have to perform this reset proceedure?

  2. Philip Churchill Says:

    Hi markvader,
    Unfortunately it is not possible to increase the number of allowed connections to a higher number. I am afraid with are stuck with 2 only.

  3. Mikko Oesch Says:

    Brilliant! It works!

  4. Philip Churchill Says:

    Hi Mike Oesch,
    Glad I could be of service.

  5. Waqas Murtaza Butt Says:

    Thanks a lot. You saved my life.

  6. Philip Churchill Says:

    Hi Waqas Murtaza Butt,
    I’m glad I could help you.

  7. Jeff Says:

    Hi Philip,

    Nice work. Got a related query if you can help. If a user receives the “exceeded the maximum number of allowed connections” message, does it get logged to any event log?

    It’s not really a login failure, so I can’t seem to find it in security logs. Am I looking in the wrong place?

  8. Philip Churchill Says:

    Hi Jeff,
    The only places I could find on the server that has logged info is in Event Viewer, Security items and in Terminal Services Manager, This Computer branch, “your server name”, and on the right hand side the Sessions tab.

  9. ian nix Says:

    This info is very helpful! Especially in a multi windows server environment like our office and the sys administrator is always missing in action hahahaha, Thanks a lot!

  10. Philip Churchill Says:

    Hi ian nix,
    Glad we could be of service. Sys administrator, who are they lol.

  11. bharathy Says:

    Thanks for the great info it works fine

    thanks a lot one more time thanks MR.Philip Churchill

  12. Philip Churchill Says:

    Hi bharathy,
    Glad we could help.

  13. Ed Says:

    you are the man, this saved me

  14. Philip Churchill Says:

    Hi Ed,
    Glad we could help.

  15. PSLIM Says:

    really just want to say big thank you. you save my time of traveling to office from home just to physically logging the server to kill those inactive user before I can logging from home again. Thanks again.

  16. Mike Nichols Says:

    Add me to the list…
    ditto ditto ditto
    Thank You for posting this for all of us…

  17. Deb Singh Says:

    Bingo.. this is exactly what I needed.. Very well written.. thanks Philip..

  18. Bernard Says:

    Thanks man.
    Help me to resolve the 2 connection limits and find out who is hogging the connection~!

  19. Mahnaz Siddiqui Says:

    Thanks a ton! This was awesome.

  20. Xataraxx Says:

    Nice! And as an added bonus, I got to make it look like I knew something the boss didn’t. :-)

  21. RDP user Says:

    Thanks Philip. Big help!

  22. Leonard Says:

    This is some useful info, as the users have a habit of simply closing the connection as opposed to logging off.
    Wish the number could be increased though.
    Thx alot.

  23. Max Says:

    Good tip! Before I knew this I used the free service of http://www.logmein.com to log in as administrator to log off the inactive users.

  24. Haider Says:

    Please Philip Churchill
    maybe there is a way to increase the connections more than 2?
    because there is a teb (unlimited connections)
    can you help me
    Haider

  25. MicrosoftJunkie Says:

    The way remote desktop for administration works in terminal services is that you are allowed: 1 console session for admin purposes and 2 rd sessions for users. The only way to increase this number is to install terminal server and add some cals to the server. Once you install terminal server and switch to remote desktop for apps instead of administration, you will be given a grace period, something like 90 or 180 days, before having to setup the licensing. Hoever, this is only meant for giving you time to set this up, it isn’t intended soley as a free grace period.

  26. mstsc manager Says:

    [...] your server??s IP … point to Administrative Tools, and then click Terminal Services Manager. …http://mswhs.com/2007/06/07/error-the-terminal-server-has-exceeded-the-maximum-number-of-allowed-con…Lost &ampamp FoundMstsc. Updated: September 28, 2007 … that were created with Client Connection [...]

  27. השתלטות מרחוק » ITbananas Says:

    [...] maximum number of allowed connections נכנס ל start/ Run ונזין את הפקודה הבאה: mstsc /v:00.00.00.00 /f -console כשבמקום האפסים נכניס את כתובת ה- IP הגדרת (remote desktop) [...]

  28. jayant Says:

    Hi Philip,
    i did, as you have explained, but still got the same error message of - the terminal server has exceeded the maximum number of allowed connections. any solution for the same. Thanks.

  29. jonnymac Says:

    This doesn’t seem to work on a Windows 2000 server. Any ideas (other then upgrading of course).

Leave a Reply