Error message when you try to connect to a remote computer by using Remote Desktop on a Windows XP Professional Edition-based computer: "The remote computer disconnected the session"

BUG #: 55788 (Content Maintenance)Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows registry


When you try to connect to a remote computer by using Remote Desktop on a computer that is running Microsoft Windows XP Professional Edition, you may receive the following error message:
The remote computer disconnected the session because of an error in licensing protocol.


Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To resolve this problem, follow these steps:
  1. On the computer that cannot open the Remote Desktop session, click Start, click Run, type cmd, and then click OK.
  2. At the command prompt, type the following command, and then press ENTER:
  3. Click Start, click Run, type regedit, and then click OK.
  4. In Registry Editor, locate and then click the following key:
  5. Delete all the keys that are located under the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSLicensing key.
  6. On the File menu, click Exit.
  7. Restart the computer.

Article ID: 921045 - Last Review: Mar 6, 2013 - Revision: 1