How to Fix Mapped Network Drives Keep Disconnecting on Windows
Mapped drives showing red X or disconnecting after restart? Fix network drive mapping persistence issues on Windows 10 and 11.
📖
Main Troubleshooting Guide
How to Fix No Internet Connection →Complete symptoms, causes, and step-by-step solutions
Symptoms
You might be experiencing this problem if you notice:
- •Mapped drive shows red X icon in File Explorer
- •Drive letter visible but "not accessible" error
- •Mapped drives disappear after restart
- •"The network path was not found" error
- •Drives work after manually double-clicking them
- •Mapped drives disconnect during sleep/wake
Common Causes
- ⚠Credential Manager not saving network credentials
- ⚠Network discovery starting after drive mapping at boot
- ⚠Offline Files feature caching stale connections
- ⚠SMB version mismatch between PC and NAS/server
- ⚠Group Policy disconnecting idle drives
- ⚠Windows starting drive mapping before network is ready
Solutions
Solution 1: Re-save Credentials
- 1Open Control Panel > Credential Manager > Windows Credentials
- 2Remove any existing entries for the network server
- 3Click "Add a Windows credential"
- 4Enter the server address (e.g., \\server\share)
- 5Enter username and password
- 6Click OK, then remap the drive
Solution 2: Disable Offline Files
- 1Open Control Panel > Sync Center
- 2Click "Manage offline files" on the left
- 3Click "Disable offline files"
- 4Restart your computer
- 5This prevents Windows from caching stale network connections
- 6Remap your drives after restart
Solution 3: Create a Startup Script for Persistent Mapping
- 1Open Notepad and paste:
- 2net use Z: \\server\share /persistent:yes /user:username password
- 3Replace Z:, server path, username, and password with your values
- 4Save as MapDrives.bat
- 5Press Windows + R, type shell:startup
- 6Move the .bat file into the Startup folder
- 7Drives will be remapped at every login
FIXES THIS IN 5 MINUTES
Fix Mapped Network Drives Keep Disconnecting Automatically
RescuePC Toolkit includes 109+ automated repairs that fix this problem with one click. No command line knowledge required.
Download Now - Free TrialNo credit card required • Works on Windows 10 & 11