A Remote desktop disconnected error can occur due to License certificate corruption. This error can throw any of the following error messages:
Because of a security error, the client could not connect to the Terminal server. After making sure that you are logged on to the network, try connecting to the server again.
or,
Remote desktop disconnected. Because of a security error, the client could not connect to the remote computer. Verify that you are logged onto the network and then try connecting again.
Additionally, any of the following license related event ID messages may be logged:
-
Event ID: 50
Event Source: TermDD
Event Description: The RDP protocol component X.224 detected an error in the protocol stream and has disconnected the client.
-
Event ID: 50
Event Source: TermDD
Event Description: The RDP protocol component X.224 detected an error in the protocol stream and has disconnected the client.
-
Event ID: 1004
Event Source: TermService
Event Description: The terminal server cannot issue a client license.
-
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 ID: 28
Event Source: TermServLicensing
Event Description: Terminal Services Licensing can only be run on Domain Controllers or Server in a Workgroup.
If you suspect License certificate corruption, check for the above events in the Event Viewer of the Remote desktop server. Then proceed with the resolution.
Quick Tip: ManageEngine EventLog Analyzer, a comprehensive log management solution can help you set alerts to spot these events in the logs. Click here to know more.
To resolve this problem, perform the following procedure on all Remote Desktop Servers
- Back up and then remove the X509 Certificate registry keys,
- Restart the computer
- Reactivate the Remote Desktop Services Licensing server.
Note: Making changes to the registry should be done with utmost caution as incorrect changes may result in serious problems. It is advisable to back up the registry before making the changes.
Steps:
- Start Registry Editor.
- Locate and click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM
- On the Registry menu, click Export Registry File.
- Type exported- Certificate in the File name box, and then click Save.
If you have to restore this registry subkey in the future, double-click the Exported-parameters.reg file that you saved in this step.
- Right-click the following values and click Delete. Click Yes to verify deletion.
Certificate
X509 Certificate
X509 Certificate ID
X509 Certificate2
- Exit Registry Editor, and then restart the server.