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.
- Press
Win + R, typeservices.msc, hit Enter. - Scroll to Remote Desktop Services (might be called Terminal Services on older systems).
- Right-click it, choose Restart.
- 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.
- Press
Win + R, typegpedit.msc, hit Enter. (If you're on Windows Home, gpedit isn't there — skip to the registry fix below.) - Go to Computer Configuration → Administrative Templates → Windows Components → Remote Desktop Services → Remote Desktop Session Host → Connections.
- Double-click Restrict Remote Desktop Services users to a single Remote Desktop Services session.
- Set it to Disabled. This lets you have multiple sessions (disconnected + new).
- Then double-click Limit number of connections, set it to Enabled, and put a number like
999999in the box. This removes the artificial limit. - Close Group Policy, run
gpupdate /forcein 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
- 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).
- Find the user account, right-click → Properties → Account tab.
- Click Logon Hours. Make sure the grid is all blue (allowed) for every hour. If there are white blocks, you're restricted.
- Select all squares, click Logon Permitted, then OK.
- Apply changes, try RDP again.
On standalone machines (not domain), this is in lusrmgr.msc → user properties → same tab.
Quick-Reference Summary Table
| Cause | Fix | Time to Fix |
|---|---|---|
| Ghost sessions from bad disconnects | Restart Remote Desktop Services or logoff command | 2 minutes |
| Group policy session limit | Disable single-session policy or bump the limit | 5 minutes |
| Logon hours restriction | Remove time limits on user account | 2 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.