Remote Desktop Licensing Protocol Error – Fix & Resolve
In this article
Yes, you can resolve the Remote Desktop Licensing Protocol error by correcting the licensing mode, reinstalling the Remote Desktop Services role, and re‑activating the license server.
What You'll Need
- Administrator access to the Windows Server hosting the Remote Desktop Session Host (RDSH) and the Remote Desktop Licensing server.
- Access to the server console or Remote PowerShell with sufficient privileges.
- The original license key(s) purchased from Microsoft or a volume‑licensing agreement.
- Internet connectivity for activation (or access to a proxy that allows Microsoft activation traffic).
- A backup of the server or at least a system state backup in case changes need to be rolled back.
Step-by-Step
- Verify the exact error message. Open Event Viewer on the RDSH server (Windows Logs → Application) and look for events with source "TerminalServices‑Licensing". Note the Event ID (commonly 1010, 1011, or 3021) and the text that mentions "Remote Desktop Licensing Protocol error".
- Confirm the licensing mode. On the RDSH server, open Server Manager → Remote Desktop Services → Overview. Click "Edit Deployment Settings" and check whether the deployment is set to "Per User" or "Per Device". The mode must match the type of licenses you have purchased.
- Check the License Server discovery. In the same deployment settings window, verify that the correct License Server is listed. If it is missing, click "Add" and type the DNS name or IP address of the licensing server.
- Ensure the License Server is activated. Log onto the License Server, open the Remote Desktop Licensing Manager (licmgr.exe), right‑click the server name and choose "Activate Server". Follow the wizard; select "Automatic" activation if the server has internet access, otherwise choose "Web Browser" and follow the manual steps.
- Re‑install the Remote Desktop Services role. On the RDSH server, open Server Manager → Manage → Remove Roles and Features. Uncheck "Remote Desktop Services" and complete the removal. Reboot the server, then return to Manage → Add Roles and Features and reinstall the role. This step refreshes the licensing components and clears corrupted files.
- Re‑register the License Server with the RDSH server. Open an elevated Command Prompt and run:
regsvr32 %systemroot%\system32\rdpinit.dll
Then run:cscript %windir%\system32\slmgr.vbs /dlvto confirm the licensing service is recognized. - Reset the licensing cache. Delete the contents of the folder
C:\Windows\System32\Licensing(or rename it toLicensing_old). Restart the "Remote Desktop Services" service (services.msc) to force a fresh cache build. - Test a new Remote Desktop connection. From a client machine, open Remote Desktop Connection, enter the RDSH server name, and connect. If the login succeeds without the licensing error, the issue is resolved.
- Document the change. Record the steps taken, the Event IDs observed, and the license key details in your change‑management system. This helps future administrators troubleshoot similar problems quickly.
Common Mistakes
- Using the wrong licensing mode (e.g., configuring "Per Device" while only Per User licenses are installed). The mismatch triggers the protocol error immediately.
- Skipping the activation step on the License Server. An un‑activated server cannot issue licenses, causing the RDSH to report an error.
- Deleting the licensing folder without restarting the Remote Desktop Services service. The service needs to recreate the cache; otherwise the error persists.
- Modifying the registry without backing up first. Incorrect registry values for
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSLicensingcan corrupt the licensing store. - Applying changes on a live production server without informing users. Restarting the RDSH service will disconnect active sessions.
Tips
- Keep a spreadsheet of license keys, activation dates, and the number of issued licenses. This makes audits and re‑activations painless.
- Enable "Remote Desktop Services" auditing (Group Policy → Computer Configuration → Policies → Windows Settings → Security Settings → Advanced Audit Policy Configuration → System → "Audit Remote Desktop Services"), so future errors are logged with more detail.
- If you manage multiple RDS deployments, use PowerShell to query the licensing mode across servers:
Get-RDLicenseConfiguration -ConnectionBroker "broker01" - When using a proxy, ensure ports 3389 (RDP) and 443 (HTTPS for activation) are allowed. Blocking 443 can prevent automatic activation.
- Schedule a maintenance window before reinstalling the RDS role to avoid disrupting end users.
Troubleshooting
If the error persists after following the steps above, work through the following checks in order of increasing impact.
- Restart the server. A full reboot clears lingering service states that a simple service restart might miss.
- Verify DNS resolution. From the RDSH server, run
nslookup license‑server‑name. If the name does not resolve, add an entry to the DNS zone or the localhostsfile. - Check the Windows License Service. Open Services and ensure "Remote Desktop Licensing" is set to Automatic and is running. If it is stopped, start it and watch the Event Viewer for new entries.
- Inspect firewall rules. Both the RDSH and License Server must allow inbound TCP 3389 and UDP 3389 for RDP, plus TCP 443 for activation. Use
netsh advfirewall firewall show rule name=all | findstr /i "rdp"to list relevant rules. - Run the Remote Desktop Licensing Diagnoser. On the License Server, open the Licensing Manager, then click "Action" → "Diagnose". Follow any recommendations it provides.
- Re‑install the licensing components only. If reinstalling the whole RDS role is too disruptive, you can remove just the "Remote Desktop Licensing" role service via Server Manager, then add it back.
- Contact Microsoft support. When all local remediation fails, collect the relevant Event IDs, the output of
slmgr /dlv, and the license key details, then open a support ticket. Do not share the license key publicly.
Frequently Asked Questions
What does Event ID 1010 mean?
Event ID 1010 indicates that the RDSH server could not contact a license server to obtain a client license, usually because the licensing mode is mismatched or the server is unreachable.
Can I use a Windows Server Essentials license for RDS?
No. Windows Server Essentials does not include Remote Desktop Services CALs, so it cannot serve as a license server for multiple concurrent users.
Do I need to restart all RDS session hosts after fixing the licensing error?
Restarting the Remote Desktop Services service on each host is sufficient; a full server reboot is only required if the problem persists after the service restart.
How many licenses can a single License Server manage?
A single Remote Desktop License Server can manage thousands of CALs, limited only by the server’s hardware resources and the licensing agreement.
Why does the error appear only for some users?
If the deployment is set to "Per Device" but a user connects from a device that already has a valid license, the server may still try to issue a new license and fail if the device limit is reached. Verify the licensing mode and the number of issued licenses.
Is there a PowerShell command to reset the licensing cache?
Yes. Run Remove-Item -Path "C:\Windows\System32\Licensing\*" -Force and then restart the "Remote Desktop Services" service.