Remote Desktop Services (RDS) Installation, Configuration and Licensing

Remote Desktop Services (RDS) is the Windows Server role that lets users access applications and desktops through a central server instead of their own computers. Applications are installed once on the server, and users open their own sessions on this server over Remote Desktop Protocol (RDP). Because updates and configuration are done in a single place, there is no need to manage applications separately on hundreds of clients.

For RDS to be used in production, the licensing must be done correctly as well as the installation. Each user or device needs an RDS CAL (Client Access License), and these licences are held on a licence server that has the RD Licensing role. In this article, I install a session-based RDS deployment with Quick Start on a single Windows Server, add the RD Licensing role, activate the licence server, install RDS CALs and connect the deployment to the licence server. RD Gateway, high availability and certificate configuration are out of scope.

The installation and licence server steps in this article are the same from Windows Server 2016 to Windows Server 2025. 2 points depend on the version: the MultiPoint Services option exists only in Windows Server 2016, and the version of the installed RDS CALs must be the same as or newer than the version of the RD Session Host servers.

1- Remote Desktop Services Components

RDS consists of several role services that work together. Quick Start installs some of them on a single server, and I add RD Licensing separately.

Component Function In This Installation
RD Session Host (RDSH) The server where user sessions and applications run. Each user opens their own isolated session on the same server Installed by Quick Start
RD Connection Broker Distributes sessions to the Session Hosts, enables reconnection to a disconnected session and manages collections. It keeps its configuration in Windows Internal Database on a single server and in SQL Server in an HA design Installed by Quick Start
RD Web Access A portal that runs on IIS. It presents the published RemoteApp programs and desktops as .rdp connections Installed by Quick Start
RD Licensing Holds and issues RDS CALs Added separately (Section 5)
RD Gateway Forwards RDP connections from outside to the internal servers over HTTPS Out of scope
RD Virtualization Host Provides users with virtual desktops (VDI) on Hyper-V Out of scope

The default RD Web Access portal opens the connection with Remote Desktop Connection on the client. The HTML5-based Remote Desktop Web Client, which runs inside the browser, is installed as a separate package and requires a valid certificate.

2- Pre-Checks

I verify the following items before starting the installation:

Check Expected State
Domain membership The server is a domain member and is a separate server, not a domain controller
Signed-in account A domain account that is a local administrator on the server
Active Directory permission An account that is a member of Domain Admins, for the group membership in Step 20
Internet access The licence server has HTTPS access to the Microsoft Clearinghouse for activation with Automatic connection
RDS CAL details The License Program, licence numbers, CAL type and version are known. The CAL version is the same as or newer than the RD Session Host version
Running RD Session Host on a domain controller is not recommended for security reasons, because it means that users sign in to the domain controller. I do this installation on a separate server that is a member of the domain.

3- Decision Table

I collect the decisions that I will make in the wizards before starting the installation. The details of the options are in the relevant steps.

Step Screen Decision to Make Choice in This Installation
Step 3 Select deployment type Standard Deployment, Quick Start or MultiPoint Services Quick Start
Step 4 Select deployment scenario Session-based or Virtual machine-based Session-based desktop deployment
Step 15 Connection Method How the licence server connects to the Microsoft Clearinghouse Automatic connection
Step 24 License Program The programme through which the CALs were purchased Open License (lab example)
Step 26 Product Version CAL version RD Session Host version (Windows Server 2016 in this environment)
Step 27 License Type Per User, Per Device or VDI Suite RDS Per User CAL
Step 29 Edit Deployment Properties, RD Licensing The licensing mode and licence server of the deployment Per User, this server

4- Remote Desktop Services Installation

Step 1 - Add Roles and Features

On the server that will host RD Session Host, I open the Server Manager console and click Add Roles and Features on the Manage menu.

Remote Desktop Services Installation and Licensing

Step 2 - Installation Type

On the Select installation type screen, I select Remote Desktop Services installation. This option starts the wizard that installs the RDS deployment as a whole instead of adding the roles one by one.

Remote Desktop Services Installation and Licensing

Step 3 - Deployment Type

On the Select deployment type screen, I choose how the deployment is installed:

Option What It Does Suitable Scenario
Standard Deployment Allows the Session Host, Connection Broker and Web Access roles to be installed on different servers Multi-server deployments that will be scaled or configured for HA
Quick Start Installs all roles on a single server, creates a session collection and publishes several RemoteApp programs Small single-server environments, testing and proof of concept
MultiPoint Services Provides a separate session for each user through multiple monitors, keyboards and mice connected to 1 computer Low-cost shared use such as training classrooms. Exists only in Windows Server 2016

Because I will run all roles on a single server, I select Quick Start.

Remote Desktop Services Installation and Licensing

Step 4 - Deployment Scenario

On the Select deployment scenario screen, I define where the sessions run. Virtual machine-based desktop deployment provides each user with a separate virtual desktop on Hyper-V. Session-based desktop deployment is the design in which users open sessions that are isolated from each other on the same RD Session Host server. I select this option because I will install the session-based design.

Remote Desktop Services Installation and Licensing

Step 5 - Server Selection

On the Select a server screen, I select the server on which the RDS roles will be installed.

Remote Desktop Services Installation and Licensing

Step 6 - Confirmation

The confirmation screen shows that the RD Connection Broker, RD Web Access and RD Session Host roles will be installed on the same server. Because the RD Session Host installation requires a restart, I select Restart the destination server automatically if required and click Deploy.

Remote Desktop Services Installation and Licensing

Remote Desktop Services Installation and Licensing

The server restarts automatically during the installation. If there are open sessions and running services on the server, I do the installation in a maintenance window.

Step 7 - Installation

The installation has started. When I sign in after the server restarts, the wizard continues from where it stopped.

Remote Desktop Services Installation and Licensing

Step 8 - Installation Result

The RDS installation completed successfully.

Remote Desktop Services Installation and Licensing

Checkpoint
The wizard must show a successful status for all 3 roles, and the Remote Desktop Services section must exist in Server Manager.

5- Adding the RD Licensing Role

When RD Session Host is installed, a 120-day licensing grace period starts for user sessions. During this period, users can connect without a licence server. When the period ends, RD Session Host contacts the licence server for connections and, if there is no licence server, rejects user sessions. Administrative connections are separate from this: the 2 concurrent administrative sessions opened with mstsc /admin do not require an RDS CAL.

If a licence server is not installed before the grace period ends, users cannot connect over RDP. Administrators can access the server only through the administrative sessions opened with mstsc /admin.

Step 9 - Adding RD Licensing

In Server Manager, I go to Remote Desktop Services, Overview and click the green plus (+) button next to the RD Licensing icon in the deployment diagram.

Remote Desktop Services Installation and Licensing

Step 10 - Select a Server

I move the server on which the RD Licensing role will be installed to the Selected list.

Remote Desktop Services Installation and Licensing

Step 11 - Confirm Selections

On the Confirm selections screen, I click Add.

Remote Desktop Services Installation and Licensing

Step 12 - Installation

The RD Licensing role is installed and added to the deployment diagram.

Remote Desktop Services Installation and Licensing

Remote Desktop Services Installation and Licensing

Remote Desktop Services Installation and Licensing

Checkpoint
In the deployment diagram, the RD Licensing icon must now appear as an installed role instead of a green plus.

6- Licence Server Activation

The installed licence server must first be activated through the Microsoft Clearinghouse before CALs can be installed. Activation gives the licence server a certificate signed by Microsoft.

Step 13 - Remote Desktop Licensing Manager

I go to Server Manager, Tools, Remote Desktop Services and open the Remote Desktop Licensing Manager console.

Remote Desktop Services Installation and Licensing

Step 14 - Activate Server

In the console, I right-click the server name and select Activate Server.

Remote Desktop Services Installation and Licensing

Step 15 - Connection Method

On the Connection Method screen of the Activate Server Wizard, I choose how the licence server connects to the Microsoft Clearinghouse:

Method How It Works When It Is Used
✅ Automatic connection (recommended) The licence server connects to the Clearinghouse directly over HTTPS If the licence server has internet access
✅ Web Browser The information given by the wizard is entered on the RD Licensing activation site from another computer that has internet access, and the code received is typed into the wizard If the licence server has no internet access
✅ Telephone Activation is done over the Microsoft Clearinghouse telephone line, and the codes are entered manually If there is no internet access at all

Because the server has internet access, I select Automatic connection.

Remote Desktop Services Installation and Licensing

Step 16 - Clearinghouse Connection

When I click Next, the wizard connects to the Microsoft Clearinghouse.

Remote Desktop Services Installation and Licensing

Step 17 - Company Information

On the Company Information screens, I enter the first name, last name, company name and country, then the optional contact details on the next screen, and continue.

Remote Desktop Services Installation and Licensing

Remote Desktop Services Installation and Licensing

Step 18 - Completing the Activation

The last screen of the wizard contains the Start Install Licenses Wizard now option. The option does not affect the activation of the licence server. It only determines when the CALs are installed.

Remote Desktop Services Installation and Licensing

Remote Desktop Services Installation and Licensing

Selection Result
Option selected, Next Activation completes and the Install Licenses Wizard opens immediately
Option cleared, Finish Activation completes, and the CALs are installed later with Install Licenses. This path is used if the licence details are not ready yet

Step 19 - Activated Licence Server

The activation of the licence server is complete.

Remote Desktop Services Installation and Licensing

Step 20 - Review Configuration

For the licence server to be able to write Per User CALs to the user objects in Active Directory and report their usage, the computer account of the server must be a member of the Terminal Server License Servers group in the Builtin container. To check this, I right-click the server name in Licensing Manager and select Review Configuration....

Remote Desktop Services Installation and Licensing

The following warning appears in the window that opens:

This license server or the Network Service account is not a member of the Terminal Server License Servers group in Active Directory Domain Services.

If this membership is not in place, the licence server cannot write Per User CAL usage to the user objects and cannot report it. I click the Add to Group button next to the warning.

Remote Desktop Services Installation and Licensing

In the warning stating that the operation requires Domain Admins privileges, I continue with Continue.

Remote Desktop Services Installation and Licensing

The licence server has been added to the group. I close the windows with OK.

Remote Desktop Services Installation and Licensing

Remote Desktop Services Installation and Licensing

This group membership is required for Per User CALs. It is not mandatory in environments that use only Per Device CALs.

Step 21 - Restarting the Service

The group membership takes effect when the computer account of the licence server starts a new logon session. For the service to use the membership, I restart the Remote Desktop Licensing service. I run the command on the licence server in a PowerShell session that I opened as administrator.

Restart-Service -Name TermServLicensing

Remote Desktop Services Installation and Licensing

There is no installed RDS CAL in Licensing Manager yet. I verify that the server is within the 120-day grace period with RD Licensing Diagnoser in Section 9, not from this screen.

Remote Desktop Services Installation and Licensing

Checkpoint
In Licensing Manager, the Activation Status value of the server must be Activated, and no group membership warning must remain in the Review Configuration window.

7- Installing the RDS CALs

Step 22 - Install Licenses

In Licensing Manager, I right-click the server name and select Install Licenses.

Remote Desktop Services Installation and Licensing

Step 23 - Install Licenses Wizard

In the Install Licenses Wizard that opens, I continue with Next.

Remote Desktop Services Installation and Licensing

Step 24 - License Program

On the License Program screen, I select the purchasing programme through which the CALs were bought. The selection determines the numbers requested on the next screen. If the wrong programme is selected, the Clearinghouse cannot validate the numbers entered and the installation fails. I find out the correct programme from the purchase document or from the reseller.

In this lab installation, I use the Open License option. With Open License, licences are installed with an Authorization Number and a License Number. Microsoft ended new sales through the Open License programme at the start of 2022. Purchases made today come through channels such as CSP, and in that case the programme stated by the reseller is selected on the screen.

Remote Desktop Services Installation and Licensing

Remote Desktop Services Installation and Licensing

Step 25 - Authorization Number and License Number

For Open License, I enter the Authorization Number and License Number values of the agreement. The Volume Licensing Service Center (VLSC) was retired in April 2024, so this information is now in the Microsoft 365 admin center under Billing, Your products, Volume licensing. The Sample field at the bottom of the screen shows the format of the values.

Remote Desktop Services Installation and Licensing

Step 26 - Product Version

In the Product version field, I select the version of the CALs. The CAL version must be the same as or newer than the version of the RD Session Host servers that users will connect to with this licence. The version of the licence server must also be the same as or newer than the RD Session Host servers. Because the RD Session Host in this environment is Windows Server 2016, I select Windows Server 2016.

Remote Desktop Services Installation and Licensing

An RDS CAL of an older version cannot be used to connect to a newer RD Session Host. When the RD Session Host version is upgraded, the CALs must also be upgraded to the same or a newer version.

Step 27 - License Type

In the License Type field, I select the type of CAL that was purchased:

Licence Type What It Licenses Suitable Scenario
RDS Per User CAL The user. 1 CAL is enough regardless of which device the user connects from Environments where users use more than 1 device
RDS Per Device CAL The device. 1 CAL is enough regardless of who connects from the device Shared devices, such as in shift work, call centres and kiosks
VDI Suite Per Device Subscription License Subscription-based device licence for VDI access Virtual machine-based deployments

Because I will use user-based sessions, I select RDS Per User CAL. The yellow warning on the screen states that the installed CAL type must be the same as the licensing mode on the RD Session Host servers. I will set the licensing mode to Per User on the deployment in Section 8.

Remote Desktop Services Installation and Licensing

Per Device CALs are enforced by the licence server. Per User CALs are not enforced, and connections are accepted regardless of the number of installed CALs. Responsibility for compliance lies with the organisation.

Step 28 - Quantity and Installing the Licences

I enter the number of CALs that I purchased in the Quantity field and install the licences with Next. In Microsoft licence audits, the values on the licence server are compared with the purchase records.

Remote Desktop Services Installation and Licensing

Entering more CALs than were purchased is a breach of the Microsoft licence agreement. Only the purchased quantity is entered in the Quantity field.

Because I do not use a real licence number in this lab environment, the installation fails. With valid numbers, the installation completes and the CALs appear in Licensing Manager.

Remote Desktop Services Installation and Licensing

8- Connecting the Deployment to the Licence Server

Step 29 - Licensing Mode and Licence Server

Installing and activating the licence server is not enough on its own. The licence server and the licensing mode that RD Session Host uses must be defined separately on the deployment. If this is not defined, Server Manager shows a warning that the licensing mode is not configured, and user connections are rejected when the grace period ends.

In Server Manager, I go to Remote Desktop Services, Overview and, under Deployment Overview, open Edit Deployment Properties from the Tasks menu. On the RD Licensing page, I select Per User as the licensing mode and add the licence server.

I can also make the same setting with PowerShell. I replace {Server FQDN} with the full name of the RDS server. In this installation, the Connection Broker and the licence server are the same server.

Set-RDLicenseConfiguration -LicenseServer "{Server FQDN}" -Mode PerUser -ConnectionBroker "{Server FQDN}" -Force

In environments with more than 1 RD Session Host, or on servers installed outside the deployment, I enforce the same setting with Group Policy. The Group Policy setting takes precedence over the setting made on the deployment.

Computer Configuration
 └─ Administrative Templates
    └─ Windows Components
       └─ Remote Desktop Services
          └─ Remote Desktop Session Host
             └─ Licensing
                ├─ Use the specified Remote Desktop license servers
                └─ Set the Remote Desktop licensing mode

I enter the name of the licence server in the Use the specified Remote Desktop license servers setting and the Per User value in the Set the Remote Desktop licensing mode setting. The licensing mode must be the same as the CAL type installed on the licence server.

9- Verification

I check the licensing configuration with RD Licensing Diagnoser under Server Manager, Tools, Remote Desktop Services. This tool shows whether RD Session Host can see the licence server, the licensing mode and how many days of the grace period remain. If no warning appears, the configuration is complete.

I also check the licensing setting of the deployment with PowerShell.

Get-RDLicenseConfiguration -ConnectionBroker "{Server FQDN}"

In the output, the Mode value must be PerUser and the LicenseServer value must be the name of the licence server. Finally, I go to https://{Server FQDN}/RDWeb from a client, sign in with a domain account and start a published RemoteApp program. Because Quick Start uses a self-signed certificate, a certificate warning appears on the client. To prevent this warning in production, I assign a trusted certificate on the Certificates page of the Edit Deployment Properties window.

If I need to undo the installation, I remove the roles from the deployment diagram in Server Manager. If I am going to move the licence server to another server, I use the Manage RDS CALs option in Licensing Manager to transfer the CALs to the new server.

I know that the installation is complete by these criteria: the licence server is activated and is a member of the Terminal Server License Servers group, the purchased CALs are installed, the licensing mode of the deployment is the same as the CAL type, RD Licensing Diagnoser gives no warning and users can sign in through RD Web Access. From this point, I can put RD Gateway and trusted certificates into use for external access.

I hope you find it useful...

No comments on this article yet. Be the first to comment!

750 characters available.
Security code
Comments are published once approved.
Your email is only used to let you know when your comment is approved. It is never published.