To configure the RDP server, we need to go into the Server Manager.

1. Installing the RDP server

In the menu, in the upper right corner, select Manage > Add Roles and Features.

This launches the Add Roles and Features Wizard. Click Next on the start page.

Select Role-based or features-based installation and click Next.

Select a server from the list of suggested servers and click Next.

Check the box for Remote Desktop Services in the role list and click Next.

In the components section, without marking anything, click Next.

After reading the description of the Next service.

Now we have to choose the roles to install. We will need Remote Desktop Licensing.

Agree to install the components by clicking on Add Features.

Also add the Remote Desktop Session Host role by clicking Add Features, then click Next.

After all the parameters and roles are added on the last page check the box Restart the destination server automatically if required, confirm by clicking Yes, and in the window that appears click Install to start the installation.

2. Setting up an RDP server

Now run the “RD Licensing Diagnoser”.

(You can run it through the “server manager” by selecting Tools > Terminal Services > RD Licensing Diagnoser in the top right menu).

In the “RD Licensing Diagnoser” we can see how many active licenses are added to the server, at the moment there are 0, because the configuration is not yet complete.

Now we need to run gpedit.msc, you can do this via RUN.

After gpedit.msc opens, you need to follow the path:

Computer Configuration >

Administrative Templates >

Windows Components >

Remote Desktop Services >

Remote Desktop Session Host >

Licensing

Open the file Use the specified Remote Desktop license servers”.

Activate by selecting “Enabled”.

Then fill in the table licensing server with the network name or IP address of the license server and click “OK”.

Select the “Set the Remote licensing mode” file.

Activate by selecting “Enabled”

Then we choose the mode that suits us: 

Per User

Per Device

After the configuration, close gpedit.msc.

Go to “Remote Desktop Licensing Manager” (Tools > Terminal Services > Remote Desktop Licensing Manager).

Find our licensing server with the status “Not Activated”, right-click on it, and select “Activate Server”.

The server activation service will start, click “Next“.

Choose “Automatic connection” as the default and click “Next“.

Enter information about the organization and then click “Next“.

Enter additional information about the organization (optional) and click “Next” again.

The licensing server is activated. Now you need to activate the licenses for the RDP server, click “Next” to do this.

The license activation service will start, click “Next“.

Choose the licensing program you need. Click “Next“.

Enter the number of the agreement and click “Next“.

Specify the product version, license type and number of licenses according to your licensing program. Click “Next“.

In the License Manager we make sure that the server is running, and we also see the total and available number of installed licenses.

Return to the “RD Licensing Diagnoser” and see that the number of licenses available to clients corresponds to what we entered in the previous step.