Install and activate RDS CALs within the 120-day grace period after enabling Remote Desktop Service (RDS), or standard users lose remote access.
Procedure
The following steps use Windows Server 2022 as an example.
Activate the RDS license server
Register the server with Microsoft. Ensure the ECS instance has Internet access.
Log on to an ECS instance.
Go to ECS console - Instances. In the top-left corner, select the region and resource group for the target instance.
Navigate to the details page of the target instance. Click Connect and select Workbench. Set the connection method to Terminal Connection, enter your username and password, and log on to the graphical terminal.
-
Right-click the Start icon
and click Run. Enter licmgrand press Enter to open the RD Licensing Manager. -
In the RD Licensing Manager, expand All Servers. Right-click the server name and click Activate Server.

-
In the Activate Server Wizard, keep the default Automatic connection method. Enter your Company, click Next, and follow the prompts to complete activation.

Install RDS CALs
Install purchased licenses on the activated license server.
-
On the Activate Server Wizard completion page, click Next.
The wizard typically opens after server activation. If not, right-click the server name in the RD Licensing Manager and select Install Licenses.

-
On the License Program page, select the License program that matches your license type and click Next.
This example uses the Enterprise Agreement license program.

-
Enter the Agreement number and click Next.
-
On the Product Version and License Type page, configure the following:
-
Product version: Select a version compatible with your OS. A Windows Server 2022 CAL covers servers running Windows Server 2022, 2019, 2016, or earlier.
-
License type: Select RDS Per Device CAL for standalone or workgroup environments. RDS Per User CAL requires a domain-based deployment. See the official Microsoft documentation.
-
Quantity: The maximum number of licenses the server can issue. Enter the exact number you purchased to avoid waste or license violations.

-
-
Click Next and wait for installation to complete. View the installed licenses in the RD Licensing Manager.

Configure the RDS Host license server
Use Group Policy to point the RDS Host service to the local license server.
-
Right-click the Start icon
and click Run. Enter gpedit.mscand press Enter to open the Local Group Policy Editor. -
In the Local Group Policy Editor, navigate to . Configure Use the specified Remote Desktop license servers and Set the Remote Desktop licensing mode.

-
Double-click Use the specified Remote Desktop license servers. Select Enabled. In License servers to use, enter the IP address or hostname of the license server and click OK.
In this example, the license server and session host are on the same instance, so enter
127.0.0.1.
-
Double-click Set the Remote Desktop licensing mode. Select Enabled, choose the licensing mode matching the license type from Step 2, and click OK.

-
Right-click the Start icon
and click Run. Enter gpupdate /forceand press Enter to update Group Policy. After the update, restart the instance.
Verify the configuration
-
Reconnect to the instance. Right-click the Start icon
and click Run. Enter servermanagerand click OK to open Server Manager. -
In Server Manager, click All Servers. Right-click the server name and select RD Licensing Diagnoser.

The configuration is successful if the diagnoser reports no issues.

-
Right-click the Start icon
and click Run. Enter licmgrand press Enter to open the RD Licensing Manager. Expand All servers and click the server name to verify that licenses are issued correctly.