ERROR_BAD_PROVIDER (0x000004B4) – Invalid network provider name fix
This error means Windows can't find a valid network provider for a mapped drive or path. Usually caused by a stale registry entry or a busted group policy.
1. Stale registry entry from a removed VPN or network service
This is the one I see 8 times out of 10. Someone installed a VPN client (SonicWall, Cisco AnyConnect, OpenVPN), used it for a while, then uninstalled it. But the uninstaller leaves behind a registry key under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order. Windows still sees that provider in its list but can't load it. Next time you try to map a drive or access a network path, it throws 0x000004B4.
Fix:
- Open Regedit as Administrator.
- Go to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order - Look at the value
ProviderOrder. It's a comma-separated list of provider names likeRDPNP, LanmanWorkstation, WebClient, SonicWallVPN. - If you see any names from software you've already uninstalled, remove them from the list. Keep the commas right after each remaining entry.
- Reboot.
I had a client last month whose entire print queue and all mapped drives failed after they removed a trial of Cisco AnyConnect. This registry cleanup fixed it in under five minutes.
2. Corrupted or missing provider DLL
Even if the registry entry is clean, the actual DLL that serves as the network provider might be missing or corrupted. This typically happens after a partial Windows update or a failed software install. The error shows up when you try to access a network path via net use or File Explorer.
Fix:
- Open Command Prompt as Administrator.
- Run
sfc /scannowto fix system files. Let it finish and reboot. - If that doesn't help, run
DISM /Online /Cleanup-Image /RestoreHealthand reboot again. - Check the
ProviderOrderregistry key again (from fix #1). If the DLL is missing, you'll see the provider name still listed but Windows can't load it.
For example, if WebClient is listed but the WebClient service is disabled or the DLL is missing, you can either remove WebClient from the list or re-enable the service via Services.msc.
3. Group Policy overriding provider order
If you're on a corporate machine, Group Policy might force a specific provider order. That can break if the policy references a provider that doesn't exist on your machine—like a legacy Novell or Mac client.
Fix:
- Open
gpedit.msc(Pro/Enterprise only) or check local security policy. - Go to
Computer Configuration > Administrative Templates > System > Logon > Always use the following network provider order. - If enabled, it will list provider names. Remove any that don't apply or disable it entirely.
- Run
gpupdate /forcefrom an admin command prompt. - Reboot.
I've seen this on domain-joined machines where an old GPO referenced a provider from a long-dead file server migration. Turning off the policy or updating the provider list fixed it instantly.
Quick-reference summary table
| Cause | Fix | Time to fix |
|---|---|---|
| Stale registry entry from removed VPN/service | Edit ProviderOrder in registry, remove unused providers | 5 minutes |
| Corrupted/missing provider DLL | SFC scan, DISM, or re-enable service | 10–20 minutes |
| Group Policy overrides order | Edit or disable GPO that sets provider order | 10 minutes |
Start with the registry check—that's the most common cause. If you're still stuck after all three, try running net use * /delete to clear all mapped drives and remap them fresh. Good luck.
Was this solution helpful?