Sometimes when users try to establish a connection from one system to another Windows device, they are prompted with the “The remote session was disconnected because there are no Remote Desktop License Server available to serve licenses.” It is a common error in Windows 10 and Windows 11 devices and it can be fixed by following these methods.

The Remote Desktop Session Was Disconnected
The Remote Desktop Session Was Disconnected Because There Are No Remote Desktop License Servers Available To Provide A License.

Fix: The remote session was disconnected error on Windows 11/10

Method 1: Run the Remote Desktop as Administrator

You might run into this error if the Remote Desktop Connection lacks proper permission to run the remote session.

1. Press the Windows key and type “remote desktop connection“. Right-click the app from the result and select “Run as administrator“.

Run as administrator

2. Then, retry the remote connection and see if it works.

If it works without any errors, you’ll need to run RDP as administrator every time you want to run the application. To do that, follow these steps:

1. Search for “Remote Desktop” in the Start menu again. Then, select “Open file location” on the right.

Open file location

2. Right-click the “Remote Desktop Connection” shortcut and select “Properties“.

right-click >properties

3. In the Shortcut tab, click “Advanced“.

Click Advanced

4. In the Advanced Properties box, check the “Run as administrator” option and click “OK“.

check Run as administrator

5. Finally, click “Apply” and then “OK“.

click Apply

Method 2: Delete the MSLicensing Registry

1. Press Windows + R, type “regedit“, and hit Enter to open Registry Editor.

2. In the Registry Editor’s address bar, paste the following path and press Enter:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft

Go to Microsoft key

3. Under the Microsoft key, find and right-click the “MSLicensing” folder. Then, select “Delete“.

Delete the MSLicensing folder

4. Click “Yes” to confirm.

Click Yes

Method 3: Delete GracePeriod Registry Key

1. Open Registry Editor again using Step 1 from Method 2.

2. It’s always recommended to back up your registry before modifying it. To do that, click the “File” menu and select “Export“.

3. Under Export range, choose “All“, and enter a name for the filename. Then, click “Save“.

Save all

4. In the address bar, copy-paste the following path and press Enter:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCMcopied

Navigate to the path

5. Under the RCM folder, find the “GracePeriod” key. Before you can modify this key, you need to take ownership of it. To do that, right-click the key and select “Permissions“.

Right-click GracePeriod > Permissions

6. Select the username, and check “Full Control“. Then, click “Apply“.

Check full control.

7. Once you gain full control, right-click the “GracePeriod” and select “Delete“. You can also choose to rename the key for a backup.

Right-click GracePeriod > Delete.

8. After deleting or renaming the key, restart your PC and check if the ‘remote session was disconnected’ error occurs again.

Method 4: Clean Boot Your PC

In some cases, a conflicting program or service might be interfering with the Remote Desktop Connection and causing errors. To fix the issue, you can try booting your Windows in clean boot mode. This will temporarily disable most startup programs and services, allowing you to find the program that is causing the problem.

Method 5: Change Licence Mode and Server

1. Open the Start menu, type “gpedit” or “group policy editor“, and select the top result.

gpedit

2. Navigate to the following location using the left panel.

Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Licensing

Go to licensing

3. In the right pane, find the “Use the specified Remote Desktop license server” or Set the Remote Desktop license mode” settings and set their status to enabled.

Set Enabled

4. Then, restart your PC to apply the changes.

That’s it.

Leave a Reply

Your email address will not be published. Required fields are marked *