0XC00A0017

STATUS_CTX_WINSTATION_BUSY (0XC00A0017) Remote Desktop Fix

Remote Desktop hits this when the target machine thinks too many users are connected. Usually it's a stuck session or a limit hit. Restarting the service or the PC clears it fast.

What's Actually Happening Here

Error 0XC00A0017 (STATUS_CTX_WINSTATION_BUSY) means Remote Desktop on the target machine refuses a new connection because it thinks the session limit is already hit. The trick is — often no one is actively logged in. The machine just holds onto ghost sessions that never properly closed. This happens most when someone disconnected instead of logging off, or when a power outage killed the network mid-session.

I've seen this on Windows Server 2019, Windows 10 Pro, and even Windows 11. It's not a hardware issue. It's entirely about how the Terminal Services layer manages sessions.

1. Most Common Cause: Ghost Sessions from Bad Disconnects

The #1 trigger: someone closed their laptop lid or walked away from a Remote Desktop session without logging off. Windows keeps that session alive in a disconnected state. If the admin set the session limit to 1 (which is default on Windows 10/11), a new connection gets this error immediately.

Fix: Restart the Terminal Services Service

This nukes all sessions cleanly. Don't bother killing individual sessions if you don't care about saving work — just restart the service.

  1. Press Win + R, type services.msc, hit Enter.
  2. Scroll to Remote Desktop Services (might be called Terminal Services on older systems).
  3. Right-click it, choose Restart.
  4. Wait 10 seconds. Then try RDP again.

If you can't get into the machine via RDP at all (because error blocks login), use a physical console or a remote management tool like IPMI/iDRAC. Or just reboot the box from the power button — not elegant, but works.

Alternative: Kill Stuck Sessions via Command Line

If you can RDP into another account that's still active, or you can run commands locally:

query session

This shows all sessions. Look for ones with state Disc (disconnected). Note the ID number (like 1, 2). Then run:

logoff 1

Replace 1 with the actual session ID. Do this for every disconnected session. Then try your RDP connection again.

2. Second Most Common Cause: Group Policy Session Limit is Too Low

On Windows Server (especially Remote Desktop Services), an admin might have set a hard limit of 1 session per user. Or the default policy on Windows 10/11 limits to 1 remote session. If you already have a disconnected session from yesterday, the new one gets blocked.

Fix: Change the Group Policy for Session Limits

This fix needs local admin rights on the target machine.

  1. Press Win + R, type gpedit.msc, hit Enter. (If you're on Windows Home, gpedit isn't there — skip to the registry fix below.)
  2. Go to Computer Configuration → Administrative Templates → Windows Components → Remote Desktop Services → Remote Desktop Session Host → Connections.
  3. Double-click Restrict Remote Desktop Services users to a single Remote Desktop Services session.
  4. Set it to Disabled. This lets you have multiple sessions (disconnected + new).
  5. Then double-click Limit number of connections, set it to Enabled, and put a number like 999999 in the box. This removes the artificial limit.
  6. Close Group Policy, run gpupdate /force in an admin command prompt, then try RDP again.

Alternative: Registry Edit (for Windows 10/11 Home)

No gpedit? Use Regedit. Be careful — wrong changes can break things.

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services]
"fSingleSessionPerUser"=dword:00000000
"MaxInstanceCount"=dword:ffffffff

Restart the Remote Desktop Services service after changing these, or reboot.

3. Third Cause: Logon Hours Restriction

Less common but real. If the user account has logon hours set (like only allowed 9 AM to 5 PM), and you try to connect outside those hours, the session might get rejected with this error. It looks exactly like a busy workstation because the system won't let a new session start during restricted hours.

Fix: Check or Remove Logon Hours

  1. On the target machine (or domain controller if it's domain-joined), open Active Directory Users and Computers (or local Computer Management → Local Users and Groups).
  2. Find the user account, right-click → Properties → Account tab.
  3. Click Logon Hours. Make sure the grid is all blue (allowed) for every hour. If there are white blocks, you're restricted.
  4. Select all squares, click Logon Permitted, then OK.
  5. Apply changes, try RDP again.

On standalone machines (not domain), this is in lusrmgr.msc → user properties → same tab.

Quick-Reference Summary Table

CauseFixTime to Fix
Ghost sessions from bad disconnectsRestart Remote Desktop Services or logoff command2 minutes
Group policy session limitDisable single-session policy or bump the limit5 minutes
Logon hours restrictionRemove time limits on user account2 minutes

Most of the time, it's cause #1. People hate restarting services, but it's the fastest way to clear the mess. Don't overthink it — if you can get to the machine physically or through a management console, just restart Terminal Services and you're back in business.

Related Errors in Network & Connectivity
Network cable unplugged Network Cable Unplugged Error on Windows 11 22H2 0XC00D1452 NS_E_WRONG_PUBLISHING_POINT_TYPE (0XC00D1452) Fix ERR_CONNECTION_REFUSED Fix ERR_CONNECTION_REFUSED in Chrome: 5 Steps That Actually Work Fix network driver crash resetting your NIC in Windows 10/11

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.