Step 1: Install the Remote Desktop Licensing Role
- Open Server Manager → Manage → Add Roles and Features.
- Choose Role-based or feature-based installation → select your server.
- Check Remote Desktop Services → under Role Services, select Remote Desktop Licensing and Remote Desktop Session Host.
- Complete the installation and restart the server if prompted.
Step 2: Activate the RD License Server & Install CALs
- Open Server Manager → Tools → Remote Desktop Services → Remote Desktop Licensing Manager.
- Right-click your server name and select Activate Server. Follow the wizard using Automatic Connection.
- Once activated, right-click the server again and choose Install Licenses.
- Select your License Program (e.g., Retail Purchase / Open License), enter your RDS CAL license code from ANYSOFTHUB, and select Per User or Per Device.
Step 3: Point Session Host to Your Licensing Server (PowerShell)
In standalone (workgroup) servers, configure the licensing mode and server via Local Group Policy (gpedit.msc → Computer Configuration → Administrative Templates → Windows Components → Remote Desktop Services → Remote Desktop Session Host → Licensing) or PowerShell:
$obj = gwmi -namespace 'Root/CIMV2/TerminalServices' Win32_TerminalServiceSetting
$obj.ChangeMode(4) # 4 = Per User, 2 = Per Device
$obj.SetSpecifiedLicenseServerList('localhost')