Why This Error Happens
Error 1204 typically occurs when Windows attempts to map or authenticate a network drive using a provider name that no longer matches an entry in the registry’s NetworkProvider\Order key. This is often caused by corrupted or leftover registry entries from previously installed VPN clients, antivirus software, or third-party network redirectors that were improperly uninstalled. It can also happen if the ProviderOrder string contains a reference to a provider (like “LanmanWorkstation” or a custom VPN provider) that is missing, disabled, or has a corrupted DLL path.
Step-by-Step Resolution Guide
-
Check the Network Provider Order in the Registry
PressWin + R, typeregedit, and navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order
Look at theProviderOrdervalue. Note any provider names listed that seem unfamiliar or belong to uninstalled software (e.g., a VPN client no longer installed). -
Remove Invalid or Orphaned Provider Entries
Cross-reference each provider listed inProviderOrderwith its corresponding subkey under:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
If a provider name in the list doesn’t have a matching service key (or the key exists but theNetworkProvider\ProviderPathDLL is missing), remove that name from theProviderOrderstring (edit as a comma-separated list, don’t delete the whole value). -
Restore Default Provider Order (If Corruption Is Extensive)
If multiple entries are broken, resetProviderOrderto the Windows default:
LanmanWorkstation,RDPNP,webclient
Restart the machine after making this change for it to take effect. -
Uninstall Problematic Third-Party Software
Go to Settings > Apps > Installed Apps and remove any VPN clients, network shaping tools, or antivirus suites installed/updated recently. Reboot, then reinstall the latest version from the vendor if needed — this often re-registers the provider correctly. -
Run System File Checker and DISM
Open Command Prompt as Administrator and run:
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
This repairs corrupted system files that manage network provider DLLs (like ntlanman.dll or rdpnp.dll).
Alternative or Verification Steps
- After making changes, try remapping the network drive again via File Explorer > This PC > Map Network Drive to confirm the error no longer appears.
- If the issue persists, boot into Safe Mode with Networking and check if the error still occurs — this helps isolate whether a startup service/driver is reintroducing a bad provider entry.