Fix STATUS_CONNECTION_COUNT_LIMIT (0XC0000246) in Windows
This error pops up when Windows hits its hidden connection limit, usually from too many SMB or RDP sessions. Here's how to kill the dead ones and stop it happening again.
When You'll See This Error
You're working on a Windows 10 or 11 machine, maybe a Server 2019 box, and suddenly you can't map a network drive, connect via RDP, or access a shared folder. Instead of the usual prompt, you get STATUS_CONNECTION_COUNT_LIMIT (0XC0000246). It's not a crash — it's a hard block. Had a client last month whose whole office couldn't print because their file server hit this limit after a botched backup script left hundreds of orphaned connections.
Root Cause in Plain English
Windows has a hidden cap on how many concurrent network connections a single user or machine can have — it's called the connection count limit. This isn't the same as the 20-connection limit on Windows 10/11 for file sharing (that's for incoming connections). This limit applies to outbound connections, especially SMB (file sharing) and RDP (remote desktop). Each time you map a drive or open an RDP session, Windows tracks it as a session. If something goes wrong — like a script that opens a connection but never closes it, or multiple RDP sessions from different machines — you hit the cap. The OS then refuses new connections with error 0XC0000246.
Default limit varies by Windows version. On client editions (Windows 10/11 Pro), it's typically 20 concurrent connections to the same server. On Server editions, it's higher but still finite. Once you hit it, you're locked out until connections are freed.
The Fix — Step by Step
Don't reboot yet. Most of the time you can clear the dead connections without restarting. Here's the order I use:
- Open Command Prompt as Admin
Hit Windows key, typecmd, right-click and choose "Run as administrator". This matters — some connection management commands need admin rights. - List all active SMB connections
Run this command to see what's open:
You'll see mapped drives and any persistent connections. Look for entries that shownet useDisconnectedorUnavailable— those are the dead ones eating up slots. - Delete all stale connections
To kill everything and start fresh:
Thenet use * /delete /y/yflag auto-confirms. If you only want to remove specific ones, use:
net use Z: /delete
ReplaceZ:with the actual drive letter. - Check RDP sessions (if this is a remote machine)
If you're hitting the limit from RDP sessions, open PowerShell as admin and run:
This lists all sessions. Look forqwinstaDisc(disconnected) sessions — those are the ones that never logged off cleanly. To kill a disconnected session:
rwinsta 2
Replace2with the session ID from the list. - Verify the fix
Try mapping a drive or connecting via RDP again. If it works, you're golden. If not, move to the advanced steps below.
Still Stuck? Try These
- Increase the limit (Server only)
On Windows Server, you can adjust the max connections via Group Policy:
Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections > Limit number of connections
Set it higher than the default (usually 2 for RDP, but for SMB it's higher). For client editions, you're stuck with the default — Microsoft's licensing restriction. - Check for rogue scripts or services
If this keeps happening, something is opening connections and not closing them. Check Task Scheduler for tasks that map drives, or any backup software that mounts network shares. I had one case where a monitoring tool opened an SMB connection every 5 minutes and never closed it — after a day, boom, limit hit. - Reboot as a last resort
Yeah, it's cliché, but a full reboot clears everything. However, if you don't fix the root cause, it'll come back. I've seen it happen within hours.
What to Check If It Still Fails
If none of the above works, you're looking at a deeper issue:
- Check Windows Event Logs
Open Event Viewer, go toWindows Logs > System, filter by sourceMicrosoft-Windows-SMBClientorTermDD. Look for event ID 1024 or 1006 — they'll tell you exactly which session hit the limit. - Is the server itself limiting connections?
If you're connecting to a Windows Server, the server might have its own limit. Check the server'snet sessioncommand to see active sessions from your machine. On rare occasions, the server's anti-virus or firewall is dropping connections prematurely, creating ghost sessions. - Third-party software interfering
VPN clients, especially older ones, sometimes count as connections. Disconnect any VPN, runnet useagain, and see if the count drops. - Time to call Microsoft support
If you're on a Server edition with a valid support contract and it's a consistent problem, open a ticket. I've seen bugs in certain Windows updates that break connection management — you might be on a bad patch.
Bottom line: this error is almost always fixable without a reboot. Clear the stale connections, find out what's causing the leak, and you'll be back online in a few minutes. Don't let it ruin your day.
Was this solution helpful?