When you log on to the terminal server through a Remote Desktop Connection, you will often encounter errors such as "the maximum number of connections allowed by the terminal server", which leads to failure to log on to the terminal server, the cause of this problem is that the default connections of terminal services are two links. If you log on to the Remote Desktop and exit without logout, the remote desktop window is closed directly, in fact, the session is not released, but is retained on the server. This will occupy the total number of connections. When the maximum number is reached, the above prompt will appear.
Solution:
1. log out of the Remote Desktop instead of closing the window directly.
2. Restrict the time For Disconnected Sessions
3. Increase the maximum number of connections, that is, set the maximum number of connections.
I. Restrict the time for disconnecting sessions
In general, it is impossible for us to stay online for a long time when maintaining a remote server. By default, the system will not be disconnected as long as we log on to the server. Therefore, we can modify this default setting to specify an automatic disconnection time.
Open the "run" window on the remote server and enter the "TSCC. msc" connection settings window. Double-click "RDP-TCP" on the right of the "connection" item, switch to the "session" tab, and select the "substitute user settings" option, set a proper time for "End Disconnected Sessions" (figure 1 ).
2. Increase the number of connections
By default, the number of users allowed to connect to the remote terminal is two, which is too small. We can add users who remotely connect to the same online as needed.
Open the "run" window and enter "gpedit. MSC open the Group Policy Editor window, select "Computer Configuration"-"management template"-"Windows Components"-"Terminal Services", and double-click "Limit connections" on the right ", set the maximum number of connections allowed by ts to a greater value (figure 2 ).
After the above two configurations, we can basically ensure that the remote terminal connection is no longer limited. However, some users have reported that only one user is currently connected, but the system prompts that the maximum number of allowed connections is exceeded. Why? This is also caused by improper operations. The remote desktop window is closed directly instead of being canceled when the user logs out after logging on to the faulty desktop of the previous account. As a result, the session is not released, but is retained on the server, the number of connections is used, which affects the normal login of the next user.