The Remote Desktop Connection prompt "the number of remote terminal connections has exceeded the allowed number of connections"

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.