65.9K
CodeProject is changing. Read more.
Home

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

emptyStarIconemptyStarIconemptyStarIconemptyStarIconemptyStarIcon

0/5 (0 vote)

Jun 28, 2023

CPOL

2 min read

viewsIcon

14363

Fix for common issue encountered when using Remote Desktop

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:

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

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

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.

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