Fix No Remote Desktop License Servers Available Error: Runbook

Diagnostic runbook to resolve 'No Remote Desktop License Servers available' in Windows Server. Bypass via mstsc /admin, configure GPO, and reset grace period.

Fix No Remote Desktop License Servers Available Error: Runbook
Immediate Administrative Fix

To fix the "No Remote Desktop License Servers available" error: Bypass the lockout immediately by running mstsc /admin /v:<Server_IP>, specify your license server and licensing mode (Per User or Per Device) via Group Policy under Remote Desktop Session Host > Licensing, or reset the expired evaluation clock by removing the binary key inside HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod.[1]

Follow this step-by-step production runbook to diagnose RD Licensing Diagnoser warnings, install official Client Access Licenses (CALs), and restore multi-user RDS access.[2]


Technical Architecture of Remote Desktop Session Host Licensing

Windows Server includes built-in licensing for up to two concurrent administrative sessions without requiring additional licensing roles. However, when the Remote Desktop Session Host (RDSH) role is installed to facilitate multi-user application hosting or virtual desktop infrastructure, Windows enforces a mandatory licensing compliance mechanism.[1]

What Causes the “No Remote Desktop License Servers Available” Error?

Upon role installation, Microsoft provides a 120-day grace period during which multiple users can establish concurrent RDP connections without a validated license server.[2] Once this grace period elapses, the RD Session Host checks every incoming connection against a designated Remote Desktop License Server.

When users attempt to connect, the client throws the error:

The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license.
Please contact the server administrator.

In the Windows Event Viewer (System log), the TermService stack logs Event ID 1061, Event ID 1069, or Event ID 1085:

  • “The Remote Desktop Session Host server is not configured with any license server.”
  • “The Remote Desktop Session Host server does not have a license server configured, and the grace period has expired.”

The failure stems from three primary operational conditions:

  1. Grace Period Expiration: The initial 120 days of unactivated operation have concluded, and the server blocks all non-administrative RDP sessions.[2]
  2. Unconfigured Licensing Mode: A Remote Desktop License Server is online and active, but the RD Session Host has not been explicitly told whether to consume Per User or Per Device CALs.[3]
  3. Network Isolation / RPC Block: The Session Host cannot communicate with the RD Licensing server on port 135 (RPC Endpoint Mapper) or dynamic high RPC ports (49152-65535) due to internal Windows Firewall rules.[4]

Comparison Matrix: Remote Desktop Licensing Modes vs. Admin Sessions

Understanding the structural differences between licensing modes prevents misallocation and deployment lockouts:

Licensing Dimension Per User CAL Mode Per Device CAL Mode Administrative Mode (/admin)
GPO Registry Value (LicensingMode) 4 2 N/A (Bypasses RDSH CALs)
Max Concurrent Users Unlimited per purchased user CALs Unlimited per registered physical endpoint Maximum 2 administrative sessions
Active Directory Requirement Mandatory (Tracks user accounts in AD) Optional (Can operate in Workgroup) None (Works in Workgroup & Domain)
License Revocation Cannot be manually revoked (Dynamic lease) Revocable (Can return CAL to pool) No license consumed
Grace Period Behavior Hard blocks users once grace expires Hard blocks users once grace expires Never expires; unaffected by grace

How Do I Bypass the Remote Desktop License Error to Log into the Server?

When the grace period expires, standard RDP sessions are terminated, locking out remote users. However, Microsoft reserves two administrative console sessions that completely bypass the RD Licensing server check.[5]

Step 1: Emergency Access Bypass via mstsc /admin

Launch the Windows Run prompt (Win + R) or Command Prompt on your local workstation and initiate a console session:

mstsc /admin /v:192.0.2.100

(Note: In legacy versions of Windows, the switch /console was utilized; modern clients standardize on /admin).

This switch requests an administrative maintenance session (Session 0 or console redirection), granting you full desktop access to inspect logs, modify Group Policy, or reset evaluation timers.[5]

Operational Pro-Tip: PowerShell Remote Command Execution

If the maximum 2 administrative sessions are already occupied by disconnected users, connect to the server via PowerShell Remoting (WinRM) to audit and log off idle sessions without relying on RDP graphical rendering:

Enter-PSSession -ComputerName 192.0.2.100 -Credential (Get-Credential)
qwinsta
rwinsta <Session_ID>

Step 2: Diagnosing RD Licensing Configuration with RD Licensing Diagnoser

Once connected to the server:

  1. Open Server Manager.
  2. Click Tools in the upper right corner and select Remote Desktop Services > RD Licensing Diagnoser (lsdiag.msc).[6]
  3. The diagnoser will display the exact reason for the lockout:
    • Number of licenses available for clients: 0
    • Licensing mode for the Remote Desktop Session Host server is not configured.
    • The Remote Desktop Session Host server is within its grace period, but the RD Session Host server has not been configured with any license server.

How Do You Configure the Remote Desktop Licensing Mode in Group Policy?

To permanently resolve the error, specify the License Server address and configure the exact licensing mode matching your purchased Client Access Licenses.[3]

Step 3: Setting License Servers and Mode via gpedit.msc

  1. Press Win + R, type gpedit.msc, and press Enter (for local server) or open Group Policy Management (gpmc.msc) on a Domain Controller.
  2. Navigate the tree:
    Computer Configuration
      └── Administrative Templates
            └── Windows Components
                  └── Remote Desktop Services
                        └── Remote Desktop Session Host
                              └── Licensing
  3. Double-click Use the specified Remote Desktop license servers:
    • Select Enabled.
    • In the License servers to use field, enter the FQDN or static IP address of your license server (e.g., 127.0.0.1 if installed locally, or licensing.yourdomain.local).
    • Click OK.
  4. Double-click Set the Remote Desktop licensing mode:
    • Select Enabled.
    • In the dropdown, select Per Device (Value 2) or Per User (Value 4) to match your CAL inventory.
    • Click OK.

Configuring via PowerShell Console:

Execute the following commands in an elevated PowerShell session to apply the settings immediately without opening the GUI:

$GpoPath = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'

# Specify the License Server hostname or IP address
Set-ItemProperty -Path $GpoPath -Name "LicenseServers" -Value "127.0.0.1" -Type MultiString

# Set Licensing Mode: 2 = Per Device, 4 = Per User
Set-ItemProperty -Path $GpoPath -Name "LicensingMode" -Value 4 -Type DWord

# Force immediate Group Policy engine update
gpupdate /force

How Do I Reset the 120-Day RDS Grace Period in the Windows Registry?

For development, testing, or emergency evaluation recovery on standalone servers where new CAL procurement is in progress, you can reset the internal evaluation counter.[2]

Compliance Governance Warning

Resetting the GracePeriod registry key is intended strictly for administrative recovery and testing. Running a commercial multi-user production environment beyond the 120-day window without purchasing official Microsoft CALs violates the Microsoft Software License Terms.

Step 4: Removing the Registry GracePeriod Binary Key

The GracePeriod key is protected by Windows default permissions, preventing direct modification even by the local Administrator. You must take ownership of the key prior to deletion.

Open PowerShell as Administrator:

# 1. Take ownership of the GracePeriod registry container
takeown /F "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod" /A

# 2. Grant Administrators full control over the key
icacls "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod" /grant "BUILTIN\Administrators:(F)"

# 3. Open Registry Editor to view the binary timebomb key
regedit.exe

Inside regedit:

  1. Navigate to:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod
  2. Locate the binary key beginning with L$RTMTIMEBOMB... or State....
  3. Right-click the binary entry and select Delete.
  4. Reboot the Windows Server.

Upon reboot, the Remote Desktop Services stack detects the absence of the expired evaluation key, generates a pristine GracePeriod counter, and resets the 120-day grace clock.[2]

Enterprises requiring dedicated multi-session computing can provision high-capacity physical infrastructure via Dedicated Servers in Pakistan or explore global deployment options through Enterprise Dedicated Servers.


Step 5: Activating RD Licensing Manager and Installing Production CALs

To maintain permanent, audit-compliant multi-user operations:

  1. In Server Manager, open Tools > Remote Desktop Services > Remote Desktop Licensing Manager (licmgr.exe).[1]
  2. Right-click the server hostname and select Activate Server. Follow the wizard to register the server with the Microsoft Clearinghouse over HTTPS.
  3. Right-click the activated server and select Install Licenses.
  4. Select your license agreement program (Enterprise Agreement, Open License, or Retail / Packaged Product) and enter your license keys.
  5. Rerun RD Licensing Diagnoser (lsdiag.msc) to confirm that zero warnings remain and all installed CALs are visible in the active pool.[6]

Production Verification Checklist

Execute this checklist before closing your incident resolution ticket:

  • Emergency Access Tested: Verified connectivity using mstsc /admin /v:<Server_IP>.
  • RD Licensing Diagnoser Validated: Confirmed lsdiag.msc reports clean status with no configuration warnings.
  • Group Policy Settings Active: Verified LicenseServers and LicensingMode are defined under Terminal Services policy.
  • Port Connectivity Verified: Confirmed RPC port 135 and port 3389 are accessible via Test-NetConnection.
  • Multi-User Concurrency Confirmed: Logged in with two separate standard user accounts simultaneously.

Deploy Enterprise Windows Remote Desktop Infrastructure with NextGen

Eliminate licensing bottlenecks, session drops, and latency issues. NextGen provides high-performance Windows Server VPS and dedicated bare-metal servers optimized for seamless remote desktop environments.

Explore Enterprise Dedicated Servers

Disclaimer: This post is for informational and educational purposes only, accurate to the best of our knowledge at publication. It does not constitute advice. We do not guarantee accuracy or completeness and accept no liability for any decisions or losses resulting from reliance on this content.

Sources & Official References
  1. Microsoft Learn. "License your Remote Desktop Session Host with Client Access Licenses (CALs)." Official Architecture Reference. Retrieved November 2026. https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds-client-access-license
  2. Microsoft Learn. "RDS 120-Day Grace Period Management and Registry Configuration." Technical Guidance. Retrieved November 2026. https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/rds-grace-period
  3. Microsoft Learn. "Configure RD Session Host Licensing Mode and Group Policy Reference." Retrieved November 2026. https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/rd-licensing-mode-configuration
  4. Microsoft Support KB. "Network Port Requirements for Remote Desktop Services Licensing." Retrieved November 2026. https://support.microsoft.com/en-us/topic/service-overview-and-network-port-requirements-for-windows-83146464-987d-e0a4-39d5-57362a98625e
  5. Microsoft TechNet / Learn. "mstsc Command-Line Parameters Reference (Admin and Console Switches)." Retrieved November 2026. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/mstsc
  6. Microsoft Learn. "Troubleshoot Remote Desktop Services Licensing with RD Licensing Diagnoser." Retrieved November 2026. https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/troubleshoot-rds-licensing

Disclaimer: This post is for informational and educational purposes only, accurate to the best of our knowledge at publication. It does not constitute advice. We do not guarantee accuracy or completeness and accept no liability for any decisions or losses resulting from reliance on this content.