终端服务器超出了最大允许连接数

错误信息的英文:

The terminal server has exceeded the maximum number of allowed connections

 

远程访问服务器时如果遇到这个问题, 可以尝试使用windows的remote desktop.

1. Start + Run

2. mstsc /admin

如果你是管理员的话, 通过这种方式你可以踢掉一个正在连接的用户, 你作为管理员成功登陆远程主机.

 

关于MSTSC的完整命令行如下:

---------------------------
Remote Desktop Connection Usage
---------------------------
MSTSC [<connection file>] [/v:<server[:port]>] [/admin] [/f[ullscreen]] [/w:<width> /h:<height>] [/public] | [/span] [/multimon] [/migrate] [/edit "connection file"]

"connection file" -- Specifies the name of an .RDP file for the connection.

/v:<server[:port]> -- Specifies the remote computer to which you want to connect.

/admin -- Connects you to the session for administering a server.

/f -- Starts Remote Desktop in full-screen mode.

/w:<width> -- Specifies the width of the Remote Desktop window.

/h:<height> -- Specifies the height of the Remote Desktop window.

/public -- Runs Remote Desktop in public mode.

/span -- Matches the remote desktop width and height with the local virtual desktop, spanning across multiple monitors, if necessary. To span across monitors, the monitors must be arranged to form a rectangle.

/multimon -- Configures the remote desktop session monitor layout to be identical to the current client-side configuration.

/edit -- Opens the specified .RDP connection file for editing.

/migrate -- Migrates legacy connection files that were created with Client Connection Manager to new .RDP connection files.
---------------------------

 

微软的知识库中有如下的解决方案

To resolve this issue:

  1. Log on to the Terminal Services-based server locally.
  2. Click Start, point to Programs, point to Administrative Tools, and then click Terminal Services Manager.
  3. Click the appropriate Terminal Services-based server. Note the Users Tab in the right pane.
  4. If there are two remote sessions, right-click one of the users with a Remote Desktop Protocol (RDP) session, and then click Logoff. (A reset also accomplishes this goal, but does not save profile changes.)
If you cannot gain access to the console on the Terminal Services-based server, you may have to ask someone to log off. If there are disconnected sessions, you can log on to those sessions.
If you cannot access the local console, you can run the Terminal Services Administration tool from another computer. Using an Administrator account in the domain, click Start, click Run, type \\terminalservername\c$, and then click OK. Open the Winnt\System32 folder, and then double-click Tsadmin.exe. In Terminal Services Administrator, click your server, and then click the Sessions tab. Right-click the disconnected session, and then click Reset.
NOTE: All data not saved in this session will be lost.

 

http://support.microsoft.com/?scid=kb%3Ben-us%3B250991&x=11&y=10

posted on   中道学友  阅读(1322)  评论(0编辑  收藏  举报

编辑推荐:
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律

导航

< 2009年12月 >
29 30 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31 1 2
3 4 5 6 7 8 9

技术追求准确,态度积极向上

点击右上角即可分享
微信分享提示