Today, one of my client had problem while he was trying to connect to a remote computer to work. The remote desktop on his Windows XP (Related Post : If you have MSLicensing Problem on Windows Vista, then check this post.) was running fine, but now he was getting this error:
“The remote computer disconnected the session because of an error in the licensing protocol. Please try connecting to the remote computer again or contact your server administrator.”
When I looked up in the knowledge base, this is what Microsoft had to say :
“Cause: The licensing protocol handles the communication of licensing information between your computer and the remote computer. If there is an error in the licensing protocol, your computer cannot be connected to the remote computer.
Solution: Try connecting to the remote computer again. If you continue to receive this error message, contact the server administrator”
Well here’s the solution to fix this problem:
This actually is a registry fix. You’ll be prompted to delete a few keys and subkeys and hence it’s better if you take a back up of your registry manually, so that you can restore it if something goes wrong during the process.
If you do not know how to take back up of your registry manually follow this tutorial : Tutorial to to back up the registry in Windows Vista or in Windows XP.
Once you have taken the back up,
1> Click on Start Menu –> Go to Run Command box –> Type regedit –> This opens the registry Editor.
2> Navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\MSLicensing
3> Delete all the keys under MSLicensing : both HardwareID and Store keys and their subkeys. If you are not sure how to delete the key and its subkeys, just rename them as follows : HardwareID to HardwareID-temp and Store to Store-temp.
4> Reboot the system. Rebooting will create new Keys under HardwareID and Store and this will fix your problems.
5> If you had renamed the keys and subkeys instead of deleting them, navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\MSLicensing and you’ll the two newly created folders – HardwareID and Store. Delete the old HardwareID-temp and Store-temp and close the registry editor.
That’s it !
Recommended reading: Registry tweak to improve performance of Windows XP