Table of Contents
Here, we’ll talk about how to Fix ‘The remote session was disconnected’ issue because creating the license store failed because access was denied. When trying to connect to a remote server, the message “Please run remote desktop client with elevated privileges” appears. A remote session was disconnected error can make it impossible to use this kind of software, which can lead to a number of other problems.
The most likely ways to fix this problem are to change the values in the Windows Registry Editor and switch to specialized Remote Desktop software. Even though the error shows up in different ways, it is safe to say that the problem is caused by the license. The problem could also happen with Windows 11/10 Machines running Windows Server or Windows Server R2 can also get the error “The remote session was disconnected.” Here are mentioned below are the ways to Fix ‘The remote session was disconnected’ issue.
Enable Local Group Policy Editor

This method works for a Standalone server. To fix the “the remote session was disconnected because there are no Remote Desktop License Servers available” error, you need to turn on two policy settings. Here is how to do that.
- To open the Run box, press the Win + R keys together.
- Then type gpedit.msc into it and press Enter to open the Local Group Policy Editor.
- Then click on the following link:
- Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Licensing
- Choose Use the specified Remote Desktop license server or Set the Remote Desktop license mode from the list in the right pane.
- Then set up both policies and save the new settings.
- Then, Restart your computer and see if the problem is gone.
Refresh the X509 Certificate Registry Keys
To fix the “the remote session was disconnected because there are no Remote Desktop License Servers available” error, try refreshing the X509 certificate registry keys. You will have to change the registry to do this. So, make a copy of your registry so you can bring it back if something goes wrong. If you want to know more information about this Visit Official Microsoft Support site.
- Press the Win and R keys together to bring up the Run box. Then press Enter after typing regedit to open the Registry Editor.
- Go to the following path in Registry Editor:
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM
- Choose Export Registry File from the Registry menu. Then, in the File name box, type export-Certificate and click Save.
- Right-click each of the following values, choose “Delete,” and then click “Yes” to save the changes:
- Certificate
- X509 Certificate
- X509 Certificate ID
- X509 Certificate2
- Close the Registry Editor when you’re done, and then start the RDSH server again. After the server starts up again, the keys will be automatically updated.
Changing the number of simultaneous remote connections
- Click Start.
- Point to Administrative Tools.
- Point to Remote Desktop Services.
- On the RD session host server, go to Start.
- Navigate to Administrative Tools.
- Select Remote Desktop Services.
- Click on Connections.
- Right-click on a connection.
- Choose Properties.
- Switch to the Network Adapter tab.
- Click on Maximum connections.
- Enter the desired number of connections.
- Click OK.
Changing the ‘Limit number of connections’ policy
- In the Group Policy snap-in, open the right group policy or the local security policy.
- Go to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections.
- Click on “Enabled” next to “Limit number of connections.”
- Change the number of simultaneous connections you need in the ‘RD Maximum Connections allowed‘ box and click OK.
Configure the RD Licensing Service
- Open Service Manager and find Remote Desktop Services.
- On the Development Overview page, click Tasks, then click Edit Deployment Properties.
- Choose Remote Desktop Licensing, and then choose the licensing mode that works best for your deployment.
- Enter the fully qualified domain name of your RD License server, and then click Add.
- If you have more than one RD License server, do step 4 for each one.
The role of Remote Desktop Session Host (RDSH) in Remote Desktop Services (RDS) is to host Windows desktops or applications. Using Remote Desktop Connection, you can get to these. But when the user tries to connect, the server says no because it doesn’t have a license for Remote Desktop. The mistake you’ve found is: