Clicky

How to Login Remotely To a Server With The Following Error: Terminal Server Has Exceeded the Maximum Number of Connections

If you remotely support Windows Servers then you have come across this error more than once. The terminal server has exceeded the maximum number of allowed connections. The system can not log you on. The system has reached its licensed logon limit. Please try again later.

Solution

In Windows Server by default you can only have two remote connections at any time. In order to solve this error we need to logout of one of the sessions without using RDP. Therefore we will have to use a command.

  • From Windows 2003 (This program is not available from XP etc.) open a command prompt windows (You will need to be logged in to an account with Domain Admin access)
  • Type in the following command where servername is the name of your server
query session /server:servername
  • The program will output a list of the currently connected sessions
query session command
  • Choose the session ID that you wish to disconnect and type in the following
reset session ID /server:servername
  • Replace ID with the ID you wish to logoff and servername with the servername!
  • This command will not show any output but you can run the first command to check if it worked. Or you can now login to the server with RDP