Set Remote Desktop License Server via Regedit
This guide explains how to manually specify a static Remote Desktop Services (RDS) license server on a Windows machine using the Registry Editor (Regedit). This configuration is particularly useful in workgroup environments, standalone servers, or troubleshooting scenarios where Group Policy Objects (GPO) or Active Directory discovery cannot be utilized.
Step 1: Open the Registry Editor
- Press
Windows Key + Rto open the Run dialog box. - Type
regeditand pressEnter(or click OK). - If prompted by User Account Control (UAC), click Yes to grant administrative permissions.
Step 2: Navigate to the Terminal Services Policy Key
In the Registry Editor address bar or left navigation pane, navigate to the following path:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Step 3: Specify the Static License Server Address
Right-click on the
Terminal Serviceskey folder in the left pane, select New, and then click Multi-String Value.Name the new value:
LicenseServersDouble-click the
LicenseServersentry to edit its properties.In the Value data field, enter the fully qualified domain name (FQDN), NetBIOS name, or IP address of your RDS license server. If you have multiple license servers, enter each address on a separate line.
Click OK to save.
Step 4: Define the Licensing Mode
To ensure the server requests the correct license type, define the licensing mode in the same registry key:
Right-click inside the empty space of the
Terminal Serviceskey, select New, and click DWORD (32-bit) Value.Name the value:
LicensingModeDouble-click
LicensingMode, set the Base to Decimal, and enter one of the following numbers in the Value data field:- 2 – Per Device licensing mode.
- 4 – Per User licensing mode.
Click OK.
Step 5: Apply the Changes
For the changes to take effect, restart the Remote Desktop Services service or reboot the server:
Open PowerShell or Command Prompt as Administrator.
Run the following command to restart the service:
net stop TermService && net start TermService(Alternatively, restart the operating system).
Verify the configuration by opening RD Licensing Diagnoser (
lsdiag.msc) to confirm that the server successfully contacts the specified licensing server.