142

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.

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

Share this WHS Article with Others:

| |

Comments (142)

Trackback URL | Comments RSS Feed

  1. Singlestone says:

    Entered:
    mstsc /v:[remote.ip.address] /f -console

    Got:
    Sign-in for Remote Desktop

    Entered:
    Credentials

    Got:
    “The terminal server has exceeded the number of allowed connections.” Again.

    These instructions:
    Fail.

  2. Nagarajan T says:

    Thanks for your valuable information. it’s working fine.

  3. [...] of our most read posts here at MSWHS is one which was written back in June of 2007 entitled, “ERROR The terminal server has exceeded the maximum number of allowed connections”. When a user establishes a Remote Desktop connection to the WHS this connection will remain [...]

  4. Shahid Khan says:

    Works like a charm in 2k3 with
    mstsc /v:[remote.ip.address] /f -admin

    Thanks for sharing

    • uju says:

      -console didnt work for me. was almost frustrated till i tried -admin and it, like you said worked like a charm. thanks very much for sharing.

  5. Jas says:

    Nice Tip , works for me …
    Thanks

  6. Nghia says:

    Thanks you very much !

  7. buttar says:

    I found another solution to work around this problem. you just need to to query the sessions and then reset any session you want and you can easily login: check the under given URL:
    http://www.itoperationz.com/2010/10/terminal-server-has-exceeded-the-maximum-number-of-allowed-connections/

  8. Prashanth A says:

    Thanks .. a Ton..
    Useful Piece of Information

  9. niranjan says:

    Thanks , I worked . other wise I would have landed in trouble .

  10. [...] WHS – ERROR – The terminal server has exceeded the maximum number of allowed connections… Filed under Tech Bites ← Dude’s – Using Java Threads .Net Bites → [...]

  11. Junior Dias says:

    Works Great!

    mstsc /v:myserver.no-ip.org /f -admin

    Windows Server 2003 Standard

    Thanks!

  12. Saravanan says:

    Cool..

    Worked like charm…

    Thank you. :)

  13. Leo says:

    Struggling with it for awhile, and then read the comments from other user, and it worked. I am on a Vista machine.
    Thanks for the helpful tips!

  14. Swift says:

    I have Terminal Services Manager installed under Administrative Tools. I highlighted “This Computer” at the top of the list, clicked “Actions” and “Connect to Computer…” and typed in the balky server’s name. The list showing two disconected sessions appeared, allowing me to diconnect them without fully logging into the remote server.

  15. adnan says:

    coool…. thanx for such a great tip

  16. Aksell says:

    THANXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX WORKED FOR ME

  17. Sofia says:

    Success!

  18. Ylli Chg says:

    thanks very much it works for me

  19. Ravi says:

    it worked great. mstsc /v:ip address /f -admin.

    Thanks for valuable help.

  20. Fuat says:

    Thanks a lot for the information, it saved me a lot of time: the server is 50 miles away: no one around to help me,

  21. Mar Sarreal says:

    Thanks a lot worked in “mstsc /v:ip address /f -admin”

  22. Jagdish Kharmare says:

    Thanks a lot worked in “mstsc /v:servername /f -admin”

  23. Abhijit says:

    Thank you Sir. This info was quite helpful….thanks a lot :)

  24. [...] cả, nhưng biết là có giải pháp, hôm nay gặp tình trạng trên nên cố gắng tìm giải pháp đó trước khi phải lọ mọ xuống [...]

  25. hemakiran says:

    hi..
    it worked for me perfectly :)
    Thnks…

  26. Mayank says:

    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.

  27. Craig says:

    Thanks, worked a treat!

  28. tkl says:

    Thanks pro

  29. Vlad Mayzel says:

    -console did not work for me.
    -admin WORKED like a charm, and i think more than on Server 2003 – SOLVED.

Leave a Reply




If you want a picture to show with your comment, go get a Gravatar.

Notify me of followup comments via e-mail. You can also subscribe without commenting.