The Remote Desktop Services license server issues client access licenses (CALs) to users and devices when they access the RD Session Host. You can activate the license server by using the Remote Desktop Licensing Manager.
Install the RD Licensing role
Sign into the server you want to use as the license server using an administrator account.
In Server Manager, click Roles Summary, and then click Add Roles. Click Next on the first page of the roles wizard.
Select Remote Desktop Services, and then click Next, and then Next on the Remote Desktop Services page.
Select Remote Desktop Licensing, and then click Next.
Configure the domain - select Configure a discovery scope for this license server, click This domain, and then click Next.
Activate the license server
Open the Remote Desktop Licensing Manager: click Start > Administrative Tools > Remote Desktop Services > Remote Desktop Licensing Manager.
Right-click the license server, and then click Activate Server.
Click Next on the welcome page.
For the connection method, select Automatic connection (recommended), and then click Next.
Enter your company information (your name, the company name, your geographic region), and then click Next.
Optionally enter any other company information (for example, email and company addresses), and then click Next.
Make sure that Start Install Licenses Wizard now is not selected (we'll install the licenses in a later step), and then click Next.
Your license server is now ready to start issuing and managing licenses.