pest_control Sympthoms
- Trying to access a Windows Server via Remote Desktop, you get the following error message: The terminal server has exceeded the maximum number of allowed connections
search Causes
- This happens when the maximum allowed number of concurrent connections is reached on the destination machine. In a large enterprise environment it can happen frequently when other users forget to properly end the session by logging off.
construction Fix/Workaround/Solution
If you have physical access to the machine, you can simply log on via console and terminate other users sessions. This applies to virtual machines as well, as you can use the console option provided by your hypervisor to access the machine.
In this guide we'll assume you can only access the machine via Remote Desktop.
- If it's still open, terminate your Remote Desktop connection
- Open a command prompt and execute the following command:
- Proceed to connect to the remote machine as usual You should now be able to logon. You can now open the task manager and proceed to terminate sessions of users that might have logged off incorrectly.
mstsc /admin
school Further considerations
To avoid opening the cmd prompt every time, you can simply create a Desktop Shortcut for the Remote Desktop exe, right click on it and then properties and editing the "Path" from:
%windir%\system32\mstsc.exe
to %windir%\system32\mstsc.exe /admin
Article ID: SYS-WIN-0004