赞
踩
RDP 协议组件 X.224 在协议流中发现一个错误并且中断了客户端连接。
事件类型: 错误
事件来源: TermDD
描述:
RDP 的 “DATA ENCRYPTION” 协议组件在协议流中检测到一个错误并且中断了客户机。
出现该情况可能的原因如下:1:有可能你的远程登陆组件出现问题,试试能否能继续远程登陆。
2:有人在攻击你,使用暴力破解的方法登陆你的系统,导致系统拒绝服务。导致的后果就是计算机的远程桌面无法登录了,ping 网关地址和外网地址全部正常,唯独远程桌面不能使用,仔细检查了各项服务,也没有发现异常,最后在网上找了很久,终于找到了解决办法!
原来是注册表中的“Certificate”子键被损坏,才导致用户无法与终端服务进行正常通信。分析:Certificate子键负责终端服务通信中数据信息的认证和加密,它一旦被损坏,终端服务的协议组件就会检测到错误,中断客户机与终端服务器之间的通信。
解决方法:
打开注册表编辑器,找到HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermService\Parameters键值,将Certificate键值删除,然后直接重新启动服务器即可。服务器在重新启动后会自动创建该键
Introduction:
This article attempts to guide you through understanding the most common settings that affect establishing a Terminal Services session in an enterprise environment.
Terminal Server
A Terminal Server is the server that hosts Windows-based programs or the full Windows desktop for Terminal Services clients. Users can connect to Terminal Server to run programs, to save files, and to use network resources on that server. Users can access a Terminal Server from within a corporate network or from the Internet.
Remote Connections for Administrative Purposes
Terminal Services supports two concurrent remote connections to the computer. You do not need Terminal Services client access licenses (TS CALs) for these connections.
To allow more than two administrative connections or multiple user connections you must install the Terminal Services role and have appropriate TS CALs.
Troubleshooting Establishing a Terminal Services Session
1. You may be limited in the number of users who can connect simultaneously to a Terminal Services session
Limited number of RDP connections can be due to misconfigured Group Policy or RDP-Tcp properties in Terminal Services Configuration. By default, the connection is configured to allow an unlimited number of sessions to connect to the server. When you try to make a Remote Desktop Connection (RDC) you get the following error:
To verify Remote Desktop is enabled:
To verify Terminal Services "Limit number of connections" Policy:
To verify Terminal Services RDP-Tcp properties:
Setting via Terminal Services Configuration
To verify Terminal ServicesLogon rights:
Configure the
The Remote Desktop Users group on a Terminal Server is used to give users and groups permission to remotely connect to a Terminal Server.
You can add users and groups to the Remote Desktop Users group in the following ways:
You can use the following procedure to add users and groups to the Remote Desktop Users group by using the Remote tab in the System Properties dialog box on the Terminal Server.
Membership in the local Administrators group, or equivalent, on the Terminal Server that you plan to configure, is the minimum required to complete this procedure.
To add users and groups to the Remote Desktop Users group by using the Remote tab
If you don’t select “Allow users to connect remotely to this computer” on the Remote tab, no users will be able to connect remotely to this computer, even if they are members of the Remote Desktop Users group.
To add users and groups to the Remote Desktop Users group by using Local Users and Groups snap-in:
Notes:
2. You may have a Port assignment conflict
This problem could indicate that another application on the Terminal Server is using the same TCP port as the Remote Desktop Protocol (RDP). The default port assigned to RDP is 3389.
To resolve this issue, determine which application is using the same port as RDP. If the port assignment for that application cannot be changed, change the port assigned to RDP by editing the registry. After editing the registry, you must restart the Terminal Services service. After you restart the Terminal Services service, you should confirm that the RDP port has been correctly changed.
Terminal Server Listener Availability
The listener component runs on the Terminal Server and is responsible for listening for and accepting new Remote Desktop Protocol (RDP) client connections, thereby allowing users to establish new remote sessions on the Terminal Server. There is a listener for each Terminal Services connection that exists on the Terminal Server. Connections can be created and configured by using the Terminal Services Configuration tool.
To perform these tasks, refer to the following sections.
Determine which application is using the same port as RDP
You can run the netstat tool to determine if port 3389 (or the assigned RDP port) is being used by another application on the Terminal Server.
To use netstat:
To determine which application is using port 3389 (or the assigned RDP port), use the tasklist command line tool along with the PID information from the netstat tool.
Change the port assigned to RDP
You should determine if this application can use a different port. If you cannot change the application’s port, you will have to change the port assigned to RDP.
Important: Microsoft does not recommend changing the port assigned to RDP.
If you have to change the port assigned to RDP, you must edit the registry.
To perform this procedure, you must have membership in the local Administrators group, or you must have been delegated the appropriate authority.
To change the port assigned to RDP:
Caution: Incorrectly editing the registry might severely damage your system. Before making changes to the registry, you should back up any valued data.
Note: RDP-TCP is the default connection name. To change the port for a specific connection on the Terminal Server, select the connection under the WinStations key.
Confirm that the RDP port has changed
To confirm that the RDP port assignment has been changed, use the netstat tool.
To use netstat:
Important: Remote Desktop Connection and the Terminal Server Web Client use port 3389, by default, to connect to a Terminal Server. If you change the RDP port on the Terminal Server, you will need to modify the port used by Remote Desktop Connection and the Terminal Server Web Client. For more information, see the following Microsoft Knowledge Base Articles:
Verify
To verify that the listener on the Terminal Server is working properly, use any of the following methods.
Note: RDP-TCP is the default connection name and 3389 is the default RDP port. Use the connection name and port number specific to your Terminal Server configuration.
Method one
Use an RDP client, such as Remote Desktop Connection, to establish a remote connection to the Terminal Server.
Method two
To use the qwinsta tool to view the listener status on the Terminal Server:
Method three
To use the netstat tool to view the listener status on the Terminal Server:
Method four
To use the telnet tool to connect to the RDP port on the Terminal Server:
If telnet is successful, you will receive the telnet screen and a cursor.
If telnet is not successful, you will receive this error:
Connecting To servername...Could not open connection to the host, on port 3389: Connect failed
The qwinsta, netstat, and telnet tools are also included in Windows XP. You can also download and use other troubleshooting tools, such as Portqry.
3. You may have an incorrectly configured Authentication and Encryption setting
Configuring authentication and encryption using Terminal Services Configuration
Note
You cannot completely disconnect a Terminal Server connection
After a Terminal Server client loses the connection to a Terminal Server, the session on the Terminal Server may not transition to a disconnected state, instead, it may remain active even though the client is physically disconnected from the Terminal Server. If the client logs back in to the same Terminal Server, a new session may be established, and the original session may still remain active.
To work around this issue, follow these steps:
RDP Services is currently busy
Please refer to article link 948496 at the end of this document for more information about Scalable Networking Pack (SNP) features in Windows 2003
The following issues may occur when in Windows Server 2003 SNP feature is turned on:
Symptoms:
When you try to connect to the server by using a VPN connection, you receive the following error message:
4. You may have a Certificate Corruption
Terminal Services clients may be repeatedly denied access to the Terminal Server. If you are using a Terminal Services client to log on to the Terminal Server, you may receive one of the following error messages:
Error message 1
Error message 2
Additionally, the following event ID messages may be logged in Event Viewer on the Remote Desktop server:
Event message 1
Event ID: 50
Event Source: TermDD
Event Description: The RDP protocol component X.244 detected an error in the protocol stream and has disconnected the client.
Event message 2
Event ID: 1088
Event Source: TermService
Event Description: The terminal services licensing grace period has expired and the service has not registered with a license server. A terminal services license server is required for continuous operation. A terminal server can operate without a license server for 90 days after initial start up.
Event message 3
Event ID: 1004
Event Source: TermService
Event Description: The terminal server cannot issue a client license.
Event message 4
Event ID: 1010
Event Source: TermService
Event Description: The terminal services could not locate a license server. Confirm that all license servers on the network are registered in WINS/DNS, accepting network requests, and the Terminal Services Licensing Service is running.
Event message 5
Event ID: 28
Event Source: TermServLicensing
Event Description: Terminal Services Licensing can only be run on Domain Controllers or Server in a Workgroup. See Terminal Server Licensing help topic for more information.
Additionally, the following event ID messages may be logged in Event Viewer on the Terminal Server:
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756
How to back up and restore the registry in Windows
To resolve this issue, back up and then remove the X509 Certificate registry keys, restart the computer, and then reactivate the Terminal Services Licensing server. To do this, follow these steps.
NOTE: Perform the following procedure on each of the Terminal Servers.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。