"Terminal server exceeds the maximum number of allowed connections" solution

  
                  

Frequent remote login to the server these days, due to lack of timely logout or other circumstances, the system prompts when logging in again in the morning: "The terminal server exceeds the maximum number of allowed connections."

way to solve this is like a lot, if you immediately need to login server, the most easy way is:

Start - Run -mstsc /console /v: server name or IP or domain name: Remote Port:

For example: mstsc /console /v:222.222.215.222:3389

Cause: When logging in to the terminal server with a remote desktop link, you will often encounter "The terminal server exceeds the maximum number of allowed links." "This type of error causes the terminal server to fail to log in properly. The cause of the problem is that the default number of links for Terminal Services is 2 links, and if you log out of the remote desktop without logging out, but close the remote desktop window directly, then In fact, the session is not released, but remains on the server side, which will take up the total number of links. When the number reaches the maximum allowable value, the above prompt will appear. How to avoid?

a, with cancellation to exit the remote desktop rather than close the window

2, open the "Control Panel", double-click "Add or Remove Programs", click "Add or Remove Windows Components", " "Components", select "Terminal Services", "Next", "Application Server", "Next" in the Windows Component Wizard dialog box, and then follow the prompts to change the mode of Terminal Services.

Windows 2000 Terminal Services has two modes of operation: Remote Administration mode and Application Server mode. The remote management mode allows the system administrator to remotely manage the server and allows only two terminal sessions to log in to the terminal server at the same time. The application server mode allows users to run more than one application, allowing multiple users to log in to access the server from the terminal. However, users of Terminal Services must have Terminal Services Licensing, that is, the Terminal Services Licensing Server must be set up in this domain or workgroup within 90 days, otherwise the user will need to delete the application and then reinstall it.

V. Modify Local Security Policy

Control Panel>>Administrative Tools>>Local Security Policy>>Local Policies>>Security Options>>< BR>
1, first find >> Microsoft web server: the idle time required before suspending the session
default: 15 minutes, change to the time you need (it is no action after login) Automatically disconnected after more than one time)

2, then find >> Network Security: Force logout after the login time is exceeded. Default: disabled, be sure to read:
Enabled


Second, the limit has been unlinked session there is time

1, modified from the Terminal Services Configuration

Run-Tscc.msc (Terminal Service Configuration)-Connection-Double-click RDP-Tcp or right-click-Property-Session-Select the first alternate user setting (O)-end the disconnected session [ Change the default value "Never" to an appropriate time, such as 30 minutes]

2. Modify from Group Policy

Start-Run-gpedit.msc-Computer Configuration-Administration Template- windows components - terminal services - session, select the right window to set the time limit to a disconnected session - select enabled, select a time

Third, increase the maximum number of links

1, Modify from Terminal Services Configuration: Run -Tscc.msc (Terminal Service Configuration) - Connection - Double click RDP-Tcp or right click - Properties, select "Network Card" tab - Modify "Maximum Connections" to change to the value you need Of course, this value can not be too large, otherwise it will take up more system resources. However, the value modified here does not seem to work. If it is set to unlimited, the situation described in this article will still appear.

2, Group Policy level higher than the Terminal Services Configuration, Group Policy is enabled when Terminal Services configuration corresponding option will be grayed out can not be modified
run -gpedit.msc- Computer Configuration - Administrative Templates - Windows component - Terminal Services
Double click on the "Restricted Connections" on the right - Select "Enabled" - Fill in the maximum number of connections allowed

4. Change the remote terminal mode

1 recommended:

start - Administrative tools - terminal services configuration - server configuration - limit each user to one session

Here are some of the parameters of mstsc:

mstsc ( Microsoft terminal services client)
The mstsc and the remote client are connected by Microsoft's Remote Desktop Protocol (RDP), and the windows xp rdp has a concurrency limit. For each user, the .rdp file is stored as a hidden file in My Documents.
Create a connection to a terminal server or other remote computer, edit an existing Remote Desktop Connection (.rdp) profile, and migrate a Windows XP connection (a connection created using the Client Connection Manager) to a new In the .rdp file.

mstsc Syntax
mstsc.exe {ConnectionFile

Copyright © Windows knowledge All Rights Reserved