• Skip to main content
  • Skip to primary sidebar
  • Advertise

Digital Marketing, SEO, IT / ITES Solutions & Life

Digital Marketing, SEO, IT / ITES Solutions & Life

How to fix-The Remote Computer Disconnected the session because of an error in the Licensing protocol in Windows Vista

May 16, 2009 by Gautam

Fix The Remote Computer Disconnected the session because of an error in the Licensing protocol in Windows Vista. If you have this problem in Windows XP Pro / Windows XP, read this post : Fix MSLicensing Protocol Error in Windows XP.

The procedure to fix this issue is almost similar to the one described for fixing it on Windows XP, except for one extra step. Here’s the step-by-step process :

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

How to fix -  The Remote Computer Disconnected the session because of an error in the Licensing protocol

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.

5> After rebooting (ensure you are logged in as administrator), click on ‘Start‘ menu–> ‘Programs / All programs‘ –> Accessories

6> Right Click on Remote Desktop Connection and select the option “Run as Administrator“.  This will recreate new Keys Hardware ID and Store under MSLicensing.

7> If you had renamed the keys and subkeys instead of deleting them, navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\MSLicensing and you’ll notice the two newly folders created – HardwareID and Store. Delete the old HardwareID-temp and Store-temp and close the registry editor.

This solves the problem and you will be able to connect to remote servers using Remote Desktop Connection.

Related post:

If you use a MAC, read this post: you were disconnected from the windows-based computer because of problems during the licensing protocol.

Filed Under: Archive Tagged With: mslicensing protocol error, Windows Vista

Reader Interactions

Comments

  1. YOYO says

    July 30, 2012 at 2:31 am

    Not start from Run as, you need to Start->Run-> mstsc /admin

  2. Gautam says

    March 3, 2012 at 9:21 am

    @Pavithra – If you are the admin, then you should get ‘Run as Administrator’ option. I wonder why you are not getting that. Let me see if I can find more info on this.

  3. pavithra says

    March 3, 2012 at 6:52 am

    I tried all these
    I suggest you temporary disable the antivirus programs on Windows 7 computers. If the issue persists, please open IE, click Tools->Manage Add-ons. Disable all add-ons that are from your security programs.
    If the issue still occurs, follow the steps below to reset IE settings.
    1. Click Start, please type “inetcpl.cpl” (without quotation marks) in the Start Search bar and press Enter to open the Internet options window.
    2. Switch to the Advanced tab.
    3. Click the “Reset Internet Explorer Settings” button.
    4. Click Reset to confirm the operation.
    5. Click Close when the resetting process has finished.
    6. Uncheck the “Enable third-party browser extensions” option in the Settings box.
    7. Click Apply, click OK.
    If it does not work either, you may try to following method.
    1. In Internet Explorer, click Internet Options on the Tools menu.
    2. On the Security tab, click Trusted sites.
    3. Click Sites.
    4. In the Add this Web site to this zone box, type the address for the licensing server. If the server (or your computer) is not configured to use SSL, click to clear the Require server verification (https:) for all sites in this zone check box.
    5. Click Add, and then click OK.
    6. Click OK.
    If the above suggestions do not help, I suggest you turn off Protected Mode in IE.

    still no change.

  4. pavithra says

    March 3, 2012 at 6:50 am

    no, i checked my computer settings, i am the admin. it is my personal laptop. still i am facing the trouble. tried creating a new mslicensing folder with and without subfolders, restarted multiple times….nothing helps. Please tell me if there is a solution.

  5. Gautam says

    March 3, 2012 at 5:55 am

    @Pavithra – If you do not see the option “Run as Administrator”, then I guess administrator facilities have been turned off for you. You are most likely using your office laptop, where in such features will be disabled.

    The only solution I can think about is to take help of your system administrator or any other person as such who is responsible for maintaining your laptop. Ask them to login with Administrator permissions, and then follow the instructions step-by-step. That’ll solve the problem.

  6. pavithra says

    March 3, 2012 at 4:16 am

    I have a windows 7 and I tried all possible solution of removing MSlicensing folder. I do not have a copy of that folder. Tried disabling Anti-virus…etc…nothing works for my RDP file. Please guide me through to correct and connect to my Remote desktop. I do not see the option of Run as Administrator when I right click it.I am getting the error as “the remote computer disconnected the session due to an error in the licensing”

    Please help me as I need to work on the remote server. I am not aware what the problem is.

  7. Gautam says

    January 30, 2012 at 10:05 am

    @Brad – Thanks for your kind words 🙂

  8. Brad says

    January 26, 2012 at 10:44 pm

    Thanks so much for this post. You made an admins day a little better :-).

  9. Jason says

    January 2, 2012 at 9:38 am

    Thanks very much for your post. I had been troubleshooting for awhile and found that all I had to do was run RDP client as administrator to create the MSLicensing keys. Kept thinking it was something on the server side but turned out to be my client.

  10. MPiha says

    November 15, 2011 at 5:54 pm

    Hi,
    windows 7 and runas was the solution.
    Thank’s

  11. jlcamara says

    July 14, 2011 at 5:30 pm

    Thank you very much. Congratulations.

  12. Gautam says

    June 16, 2011 at 6:31 am

    @Nan – When you click on ‘Run as administrator’, please check if it’s creating MSLicensing key. If it’s not, then you can try creating it on your own, this way we can only hope it’ll work. We cannot be sure about it.

  13. Nan says

    June 16, 2011 at 12:27 am

    My vista is 32 bit. These are the steps I tried.

    Deleted both the hardwareID and store entry under MSLicensing. Right clicked on remote desktop and selected run as administrator, still not connecting.

    I do log into VPN first. This is so frustrating.

  14. Nan says

    June 16, 2011 at 12:15 am

    I am running VISTA home and I did try running as admin. I can’t check this on any of my Windows 7 computer, because this client doesn’t have their servers or VPN, not sure which, configured to let us use Windows 7 yet.

  15. Gautam says

    June 16, 2011 at 12:09 am

    @Nan – Which version of Windows are you using ? Did you try to ‘Run’ it as an ‘Administrator’ ?

  16. Nan says

    June 16, 2011 at 12:05 am

    I have tried everything I can find and nothing is working. After I delete the registry entries and reboot, what should be there? I haven’t been able to work for a day because of this and my client isn’t any help.

  17. David says

    June 2, 2011 at 7:21 am

    Thanks, The one critical step I was missing was to “Run as Admin” so that my Win 7 RDC would rebuild the keys…
    Again Thank You!

  18. Brent says

    July 4, 2010 at 4:53 pm

    Thanks, “Run as Administrator” worked for my frustrated user. I was out of ideas. I used it on a Vista Home edition.

    Thanks, Thanks, Thanks.

  19. Brent says

    July 4, 2010 at 4:51 pm

    Thanks, “Run as Administrator” worked for two users of mine. I was out of ideas. Thanks, Thanks, Thanks.

  20. Goran says

    July 1, 2010 at 1:35 am

    @karlo
    I have this same problem… Windows7 64 bit cannot connect to a win 2000 terminal server.

  21. Gautam says

    June 5, 2010 at 10:44 am

    @Karlo – when i try connecting to an older system from Vista it’s working fine for me. Right now I do not have a Win 7 machine to check if it is a generic problem or a one off. Meanwhile, let me try to find a solution for you from elsewhere. If you figure out any solution please update me with the same.

    Thanks,

  22. karlo says

    June 4, 2010 at 6:39 pm

    Hi

    I have this problemn on a Win7 32 bit only contetting to a old Win200 Terminal Server.

    I tryed to rebuild the registry keys, but it did not fix the prolblem.

    Connect to RDP service on Win2003/Win2008 server is working fine.

    Any idea?

    Thanks

    karlo

  23. salman chaudhry says

    May 25, 2010 at 12:15 pm

    i did as u mentioned above, but problem have not fixed. please advised.

  24. Mudassir Hussain says

    May 6, 2010 at 12:04 pm

    thanks for the post. It really helped a lot. Keep up the good work going.

  25. dionisio says

    January 25, 2010 at 9:08 am

    Thanks, this tip had been very helpful…

  26. drummizeb says

    August 28, 2009 at 12:40 am

    I have the same message but on a Mac using MS Remote Desktop for Mac- any idea how to correct?
    Thanks!

  27. Gautam says

    August 21, 2009 at 12:17 am

    @Tusik – Thanks for the update 🙂

  28. Tuisk says

    August 20, 2009 at 8:48 pm

    Problem solved ! I used program called mstermlm.exe.
    Guatam, thank You anyway !

  29. Gautam says

    August 20, 2009 at 8:20 pm

    @Tusik – Do you have teamviewer installed ? I can take a look at it.

  30. Tuisk says

    August 19, 2009 at 8:10 pm

    I the administrator and I do run the command as administrator but still no luck.

  31. Gautam says

    August 18, 2009 at 10:24 pm

    @Tuisk – In Vista you need to explicitly execute commands as administrator. This is a new security feature that’s introduced.

  32. Tuisk says

    August 18, 2009 at 9:54 pm

    I’m sorry but I still have the problem. The case is, that I don’t even have this folder called “MSLicensing” under the shown directory. I use Vista Hope Premium. Any suggestions?

  33. Gautam says

    August 14, 2009 at 5:03 pm

    @Said – Glad it was helpful.

  34. Said Msamr says

    August 14, 2009 at 2:48 pm

    Thanks for your tip. It did work and got me out of a sticky problem.

    Cheers,
    Said.

Primary Sidebar

Copyright © 2025 · Magazine Pro on Genesis Framework · WordPress · Log in