Fix the "No Remote Desktop License Servers" error after RDS free trial expires on a Windows ECS instance.
Problem description
When you connect to a Windows instance through Remote Desktop, the connection fails after you enter the correct username and password. The following error message appears.

Cause
Windows Server allows up to two simultaneous Remote Desktop sessions by default. To support more sessions or enforce device/user access control, you must install Remote Desktop Services (RDS) and purchase Remote Desktop Services Client Access Licenses (RDS CALs).
After RDS is installed, the system provides a 120-day free trial license. During this period, multiple simultaneous sessions are supported without RDS CALs. Once the trial expires, RDS CALs must be purchased and configured. Otherwise this error appears.
Solution
-
If you need no more than two simultaneous sessions, use Solution 1: Remove the role related to Remote Desktop Services to restore default settings.
-
If you need more than two sessions or device/user access control, use Solution 2: Purchase and configure RDS CALs for authorization.
Solution 1: Remove the Remote Desktop Services role
The following steps use Windows Server 2016 as an example.
-
Connect to the Windows ECS instance. See Choose a connection method.
-
Right-click
and select Run. Enter servermanagerand click OK. -
In Server Manager, remove the Remote Desktop Services role.
-
Choose Manage > Remove Roles and Features.

-
On the Server Selection page, keep the default selection and click Next.
-
On the Server Roles page, clear Remote Desktop Services. In the dialog box, click Remove Features, then click Next.

-
On the Features page, clear Remote Server Administration Tools and click Next.
-
On the Confirm page, click Remove.
-
Wait for the removal to complete on the Results page.
-
-
Restart the Windows instance after removal completes.
-
Method 1: Restart through the ECS console. See Restart an instance.
-
Method 2: On the Windows desktop, right-click
, select Shut down or sign out > Restart.
-
-
Connect to the Windows instance with Remote Desktop or Workbench. See Connect to a Windows instance by using Workbench.
Solution 2: Purchase and configure RDS CALs
Purchase and configure RDS CALs. See Activate RDS licenses.