0X00001B8E

Fix 0X00001B8E: All Remote Desktop Connections in Use

Network & Connectivity Intermediate 👁 7 views 📅 Jun 19, 2026

This error means Windows Remote Desktop hit its connection limit. The fix is quick: increase the limit via Group Policy or regedit. I'll show you exactly how.

If you're staring at the ERROR_CTX_LICENSE_NOT_AVAILABLE (0X00001B8E) message — the one that says "The number of connections to this computer is limited and all connections are in use right now" — yeah, that's annoying. Especially when you're locked out and need in. Let's cut straight to the fix.

The Quick Fix: Increase the Connection Limit

The culprit here is almost always the default Remote Desktop limit. Windows Server allows only 2 concurrent connections by default. If you've got 3 admins logged in, or a session got orphaned, you'll hit this wall. Here's how to open it up.

Option 1: Group Policy (Best for domain-joined servers)

  1. Open gpedit.msc on the server or via Domain Group Policy.
  2. Go to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections.
  3. Find "Restrict Remote Desktop Services users to a single Remote Desktop Services session" — set it to Disabled or Not Configured. This prevents one user from hogging multiple sessions.
  4. Find "Limit number of connections" — set it to Enabled, then set the RD Maximum Connections allowed to something like 10 or 25 (depending on your license and hardware).
  5. Run gpupdate /force from an admin command prompt. Reboot if you want to be safe, but it usually picks up within a minute.

Option 2: Registry Edit (Faster, standalone servers)

Don't bother with Group Policy if this is a workgroup server or you're locked out remotely — registry is your friend.

reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Services\TermService\Parameters" /v MaxConnectionCount /t REG_DWORD /d 10 /f

Then restart the TermService from an admin command prompt:

net stop TermService && net start TermService

That bumps the limit to 10. Adjust the 10 up or down as needed. Don't set it stupid high — 50 on a puny VPS will kill performance.

Why This Works

Windows Server's licensing model for RDP is wonky. By default, it only gives you 2 administrative sessions. That's for console access plus one remote admin. Once those slots fill up — even if a user's session is disconnected but not logged off — you get the 0X00001B8E error. Raising the limit bypasses that guard. It doesn't fix a true licensing issue (like if you have 50 users without CALs), but for admin access it's the right move.

Less Common Causes (When the Above Doesn't Help)

If you increased the limit and still see the error, check these:

Orphaned Sessions

Sometimes sessions hang around after a disconnect. Run this from an elevated prompt to see who's hogging connections:

query user /server:localhost

Log off stale sessions with logoff sessionID. For example: logoff 2. Make sure you're not booting yourself.

RDP Listener Binding Issues

Rare, but if you've messed with network adapters or changed IPs, the listener might be bound to the wrong interface. Fix it:

netsh int ipv4 add address "Ethernet" "192.168.1.10" 255.255.255.0 skipassource=true

Or just check the listener in Registry under HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp. Make sure PortNumber is 3389 and fEnableWinStation is 1.

Licensing Mode Mismatch (Windows Server 2016 and older)

If you're running an old Server 2012 R2 or 2016 box with Remote Desktop Services in Per Device mode but you're not using a license server, the system will eventually block connections. Check in Server Manager > Remote Desktop Services > Deployment > RD Licensing. Set it to Per User if you don't have a license server, or install one.

Prevention: Don't Hit This Again

  • Set a session timeout. Use Group Policy under Session Time Limits to auto-disconnect idle sessions after 30 minutes. Stops orphaned sessions from piling up.
  • Limit sessions per user. Enable the "Restrict Remote Desktop Services users to a single session" policy. One admin, one session.
  • Monitor connection count. Use netstat -an | find ":3389" to see active RDP connections. Set up a scheduled task or PowerShell script to log off stale ones.
  • Buy CALs if you need more than 2 concurrent users. This fix isn't a license workaround — it's for admin access. For user access, get proper Remote Desktop Services CALs.

That's it. 90% of the time, it's the limit. Crank it up, log back in, and get back to work.

Was this solution helpful?