Open your Server Manager.
Click Remote Desktop Services on the left hand side.
Select the Overview branch.
In Deployment Overview area, select Edit Deployment Properties from the Tasks menu.
Select RD Licensing.
Choose the licensing mode and enter the name of the license server, click Add and then click OK.