Use the command line mstsc/console to crack the Remote Desktop. If the maximum number of connections is exceeded

Source: Internet
Author: User
Tags mstsc

Remote desktop Users may often encounter the problem of "exceeding the maximum number of allowed connections", because the default setting of remote desktop for administrator is two connections, in addition, If you disable remote desktop without logging off after remote logon, the session is actually still on the server side, so the above prompt is easily displayed when you connect again. Solution 1: Use logout to disable remote desktop, limit the time of Disconnected Sessions, and increase the number of connections.

The last two methods can be modified in either the terminal services configuration, the group policy, or the English system, therefore, the following operations are for English systems.

1. Modify the terminal services configuration

Start-> control pannel-> administrative tools-> terminal services configuration

Select connections on the left and double-click RDP-Tcp on the right to open the attribute Setting dialog box.

Select the sessions tab, select the first override user settings, and modify the end a disconnected session time, for example, 30 minutes. In this way, if the connection is not reconnected within 30 minutes after the connection is disconnected, the system automatically ends the session.

Select the network adapter and modify maximum connections. The default value is 2. Change it to the number you want, but it should not be too large. Otherwise, the occupied system resources are relatively large. However, it seems that this modification does not work for the administrator. After the modification is completed, the setting is changed back to 2.

2. Modify group policy

This level is higher than the terminal services configuration. After modification, the changes in the terminal services configuration above will become grayed out and cannot be modified.

Start-> run-> gpedit. msc

Computer configration-> Administrative templates-> windows components-> terminal services

Double-click limit number of connections on the right to open the Settings dialog box, select Enabled, and add the maximum number of connections to TS maximum connections allowed.

Terminal services-> sessions on the left

Double-click set time limit for disconnected sessions on the right, select Enabled, and select time from End a disconnected session.


Guanwei blog

Related Article

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.