Click here to Skip to main content
15,895,423 members
Articles / remote-desktop
Tip/Trick

Fix for Error - "The remote session was disconnected because license store creation failed with access denied."

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
28 Jun 2023CPOL2 min read 9.1K  
Fix for common issue encountered when using Remote Desktop
In this tip, you will see a fix for "The remote session was disconnected because the license store creation failed with access denied" issue in Remote Desktop by editing the registry and granting proper permissions.

Introduction

In this post, I will show you how to fix a common issue that many people encounter when using Remote Desktop. This issue is:

The remote session was disconnected because the license store creation failed 
with access denied. Please run remote desktop client with elevated privileges.

Background

This error message means that the Remote Desktop client cannot create or access the license information on your computer, which is required to connect to a remote server. This can happen due to incorrect permissions or corrupted registry entries.

Using the Code

To fix this issue, you need to edit the registry and grant the proper permissions for the MSLicensing key. This key stores the license information for Remote Desktop. Here are the steps you need to follow:

Image 1

Step 1

Open the Registry Editor. To do this, follow these steps:

  • Click on the Start menu and type regedit.exe in the search box.
  • Click on the regedit.exe icon that appears in the search results.
  • The Registry Editor window will open.

Step 2

Image 2

Change the permissions for the MSLicensing key. To do this, follow these steps:

  • Navigate to the following registry subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSLicensing. You can do this by clicking on the arrows next to each folder name until you reach MSLicensing.
  • Right-click on the MSLicensing key and select Permissions from the context menu.
  • Click on the Add button.
  • In the Select Users or Groups dialog box, click on the Locations button.
  • Select your local computer name at the top of the list and click on OK.
  • Type ALL APPLICATION PACKAGES in the Enter the object names to select box and click on OK.

Step 3

Image 3

Grant read permission for ALL APPLICATION PACKAGES. To do this, follow these steps:

  • In the Permissions for MSLicensing dialog box, find ALL APPLICATION PACKAGES in the Group or user names section.
  • In the Permissions for ALL APPLICATION PACKAGES section, check the Allow box next to Read and click on OK.

Image 4

That's it! You have successfully fixed the issue and you should be able to connect to a remote server using Remote Desktop without any problems.

I hope you found this post helpful and informative. If you did, please like and share it with your friends so that they can also learn how to fix "The remote session was disconnected because license store creation failed with access denied. Please run remote desktop client with elevated privileges."

History

  • 28th June, 2023: Initial version

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead
Vietnam Vietnam
---------------------------------------------------
Thanks for code project, I joined code project's community in the begin of the year 2008. Code project helped me so much when I still a student.

Now I had working about 14 years (2023). Let Code project plentiful as thank its. So I decide sharing my little knowledge for help another students and developers.

Here is my technical blog: https://learn-tech-tips.blogspot.com
I will share many knowledge about Application, Web, Game, Programming languages C#, C++, Web(HTML, CSS, javascript). Office (Excel, Photoshop) and another useful things Smile | :)

---------------------------------------------------
I'm developer, I like code,
I like to learn new technology and want to be friend with people to improve my skills Smile | :)

Thanks and Best Regards!
Zidane (huuvi168@gmail.com)
https://learn-tech-tips.blogspot.com

Comments and Discussions

 
-- There are no messages in this forum --