Issue with Remote Desktop connection

Anonymous
2024-01-04T15:27:49+00:00

My RDP used to work properly until last week but since this week we have encountered the following error message:

"We couldn't connect to the remote PC because of a licensing error. If this keeps happening, contact your network administrator for assistance."

"The remote session was disconnected because there are no remote desktop license servers."

What might be the cause of the same? Hetzner is our service provider. We have the following license as well, Windows License (Windows Server 2022 Standard Edition - 8 Cores).

Windows for business | Windows Server | User experience | Remote desktop services and terminal services

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-01-05T01:56:44+00:00

    Hello Anna Ba,

    Thank you for posting on the Microsoft Community Forum.

    Based on the error message you provided, it seems that there might be an issue with the Remote Desktop Licensing server. This error message usually occurs when the Remote Desktop Licensing server is not available or there are no Remote Desktop Client Access Licenses (CALs) available.

    To resolve this issue, you can try the following steps:

    1. Check if the Remote Desktop Licensing server is available and running.
    2. Check if the Remote Desktop CALs are installed and available on the Remote Desktop Licensing server.
    3. If the Remote Desktop Licensing server is not available, you can try the following steps to check its availability.

    Step 1: Depending on whether you want to configure Group Policy centrally from your domain or locally on each session host:

    • Open the Group Policy Management Console (GPMC) and create or edit a policy that targets your session hosts.
    • Open the Local Group Policy Editor on the session host.

    Step 2: Go to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Licensing.

    Step 3: In the policy list, right-click Use the specified Remote Desktop license servers, and then select Properties.

    Step 4: Select Enabled, and then enter the name of the license server under License servers to use. If you have more than one license server, use commas to separate their names.

     

    Step 5: Select OK.

    Step 6: In the policy list, right-click Set the Remote Desktop licensing mode, and then select Properties.

    Step 7: Select Enabled.

    Step 8: Under Specify the licensing mode for the Remote Desktop Session Host server, select Per Device or Per User, as appropriate for your deployment.

     

    After configuration, please check the registry.

    (1) Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services

    LicensingMode, the value 4 for per user cal,the value 2 for per device cal

    (2) Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\Licensing Core

    LicensingMode the value 4 for per user cal,the value 2 for per device cal

    (3) Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\TermService\Parameters\LicenseServers ,

    add string value: SpecifiedLicenseServers , value data is  the FQDN OR IP address of license server

    (4) Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsNT\Terminal Services,

    Add string value LicenseServers to specify a License Server, value data is  the FQDN OR IP address of license server

    You can also refer to the following link.

    License Remote Desktop session hosts | Microsoft Learn

    1. If the Remote Desktop CALs are not available, you can try installing them on the Remote Desktop Licensing server or contacting your network administrator for assistance.

    Hope this helps! Let me know if you have any other questions.

    Kind regards

    Bblythe Xiao

    0 comments No comments