Can not connect Windows AWS instance via RDP

Anonymous
2025-01-15T13:52:29+00:00

We were using, on a trial basis, the feature Remote desktop with logins with Multiple users instead of 2 users. 

We had installed the feature on 12-09-2024 on one of our Windows based AWS instances.

We don't want to use this feature now. 

As of now when we trying to connect that server we get the following message after entered the credentials. "The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license. Please contact the server administrator." 

We cannot log into the server with any RDP user.

This is affecting our operations.

Please let us know the solution for fix this issue.

We appreciate your immediate response.

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
    2025-01-16T10:06:14+00:00

    Hello,

    In an RDS environment, RDLS installs and publishes the cals, and SH must point to LS for the cals to be properly issued. For per-device and per-user CALs to work, the Remote Desktop Session Host and Remote Desktop License Server are configured in one of three configurations:

    (1) Both are part of the same working group

    (2) Both are in the same field

    (3) In a trusted Active Directory domain or forest (two-way trust)

    References: 跨域林或工作组设置 RD 许可 - Windows Server | Microsoft Learn

    Please make sure that the version of the CAL you purchased is LS≥CAL≥SH according to the license usage rules

    The ApsaraDB RDS CAL mode is divided into Per User and Per Device. If multiple people share one client or jump server, you usually need to select Per Device mode. If the user will log in through different clients, the Per User mode is usually selected. Also, Per User Cal can only be used in domain environments, while Per Device Cal can be used in domain environments and workgroup environments.

    1. If you check the IP/FQDN and CAL information of RDLS, please check the configuration on the session host (destination server) as described below, if it is not configured correctly, it will not be able to be used normally after the 120-day grace period.

    Group Policy path:

    gpedit.msc→Computer Configuration→Administrative Templates→Windows Components→Remote Desktop Services→Remote Desktop SessionHost→License

    Verify that the following are configured correctly

    1. Use the specified Remote Desktop license servers

    It must be configured to be enabled, and the authorization server must be specified as either FQDN or IP (native).

    1. Set Remote Desktop Licensing Mode

    It must be configured to activate and the license type must be specified

    After Group Policy is configured, gpupdate/force refreshes the policy

    1. regedit Open the registry and check the value of the key below

    1、Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsNT\Terminal Services

    LicensingMode value,Key-value 4 for per user cal,Key-value 2 forper device cal

    2、Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TerminalServer\RCM\Licensing Core

    LicensingMode value,Key-value 4 for per user cal,Key-value 2 forper device cal

    3、Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\TermService\Parameters\LicenseServers

    Add the strings "SpecifiedLicenseServers",Specify License Server,is the fully qualified domain name or IP address of the license server.

    4、Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsNT\TerminalServices

    LicenseServers specifies LicenseServer, which is the fully qualified domain name or IP address of the license server

    If the value of the key changes, restart the server after the change.

    1. If the firewall is enabled, you need to open the required ports for RDSH and RDLS

    4 ) Per cal user

    When a user gets a CAL, they can connect to any session host in the domain and check if the CAL is successfully obtained by following the steps below: Open ADUC on the domain controller, open the advanced functions from the view, and open the user properties of the corresponding user. After msTSmanagingLS in the property editor, if there is a value, it proves that you got the CAL.

    I hope this information helps you.

    Best regards,

    Jingjing Wu

    0 comments No comments