Kent J. Chen's WebLog

a personal journal by an addictive geek

The remote computer disconnected the session because of an error in the licensing protocol

Posted in Tips & Tricks on June 12th, 2009 by Kent

image

One remote user from work called me the other day saying her remote desktop client stopped working because of “there are no terminal server client access licenses available for this computer”. Well, that’s easy, I walked her through and successfully deleted the MSLicensing registry key on her Windows Vista computer, and happily told her you can try it again now. But surprisingly, she replied a few seconds later saying no, still didn’t work. But this time the error message was different:

The remote computer disconnected the session because of an error in the licensing protocol

It’s surprising because having been using remote desktop client for ages this is the first time I saw the error message like this. Out of luck after a few checking here and there, I went to Google for help. Nothing had worked until I was landed to this Microsoft KB, Removing Terminal Server licenses from an RDP client. At the very bottom of this KB, it mentions:

If you delete the HKEY_LOCAL_MACHINE\Software\Microsoft\MSLicensing subkey on a client that is running Windows Vista or a later version, later attempts to connect to a Terminal Server may fail. Also, you receive the following error message:

An Error occured in the licensing protocol.

And suggests that to resolve this problem, right-click the Remote Desktop Connection icon, and then click Run as Administrator. 

Bingo!! That was it. Did I mention that this problem was actually occurred on a Vista computer above? And it only happens on Vista or later OSs because:

By default, the remote desktop connection runs as a user with the lowest user permissions. By default, a restricted user does not have permission to write registry entries to HKEY_LOCAL_MACHINE. Therefore, attempts to rewrite the MSLicensing key fail. Starting Remote Desktop Connection with administrative credentials provides the permissions that are necessary to write the needed registry keys.

Related Posts:

You may also like

Tags: ,

Disclaimer
Before you act upon this blog, please read this disclaimer.

If you find this post useful, you may consider following me on Twitter and subscribing to my RSS feed.

Free eBooks & Whitepapers

  1. Keith says:

    Thanks, this saved me from nearly having a coronary when the old trick of deleting the registry key failed to allow it to regenerate the new temporary 120-day TS license for Vista Home. It had worked just fine up until the last expiration of the temp license a couple days ago; I guess some recent Vista update issued after May 2009 must have "fixed" Vista so that the TS client runs at the very lowest user permissions.

  2. stu says:

    Just had this exact same problem on a win7 machine.

    Thanks for the fix! :)

  3. Buzz Grant says:

    Thank you!!

  4. TS says:

    You are so wonderful. Have tried both but in reverse order. Thank you Thank you Thank you :)

  5. TheQuestor says:

    You sir are a god. I have had this problem now on multiple computers and everything says to delete the regkey mslisencing wich did not fix the error. Rigth clicking on the RDC client and running as admin did. THANK YOU.

  1. There are no trackbacks for this post yet.

Leave a Reply