Computer Configuration → Administrative Templates → Windows Components → Remote Desktop Services → Remote Desktop Session Host → Licensing
Use the specified Remote Desktop license servers → Enabled → enter the name or IP of your license server
Set the Remote Desktop licensing mode → Enabled → choose Per User or Per Device, based on your CALs