How to Fix Windows Mapped Network Drives Disappear at Login on Windows
Mapped network drives keep disconnecting or showing red X? Network drives unavailable at login? Drives reconnect only when clicked? Fix persistent mapped drive issues.
Symptoms
You might be experiencing this problem if you notice:
- •Mapped drives show red X icon at login
- •Network drives disconnect after PC goes idle
- •Drives only reconnect when you try to open them
- •"Could not reconnect all network drives" notification at startup
- •Mapped drives disappear completely after restart
- •Scripts or apps fail because mapped drive is not available
Common Causes
- ⚠Windows network startup timing — network not ready when drives map
- ⚠Credential Manager not saving network credentials properly
- ⚠SMB connection timeout settings too aggressive
- ⚠Group Policy or registry settings interfering with persistent connections
- ⚠DNS resolution delay at startup
- ⚠Power management disconnecting network adapter during idle
Solutions
Solution 1: Fix Startup Drive Mapping
- 1The most common cause: network is not ready when Windows tries to map drives
- 2Fix with Group Policy (Pro/Enterprise):
- 3gpedit.msc → Computer Configuration → Administrative Templates
- 4→ System → Logon → "Always wait for the network at computer startup"
- 5Set to Enabled
- 6For Home edition: Registry Editor (regedit):
- 7HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Winlogon
- 8Create DWORD: SyncForegroundPolicy = 1
- 9Restart PC
Solution 2: Fix Credentials and Persistence
- 1Open Credential Manager (Control Panel → Credential Manager)
- 2Under "Windows Credentials": find entries for your network shares
- 3If missing: click "Add a Windows credential"
- 4Enter: network address (\\server), username, password
- 5Re-map drives with persistence:
- 6CMD: net use Z: \\server\share /persistent:yes /savecred
- 7Or: right-click "This PC" → "Map network drive"
- 8Check "Reconnect at sign-in" and "Connect using different credentials"
Solution 3: Startup Script Workaround
- 1If drives still disconnect: create a login script
- 2Create a .bat file with:
- 3ping -n 5 127.0.0.1 >nul (5 second delay for network)
- 4net use Z: \\server\share /persistent:yes
- 5Place in: shell:startup (Win+R → type shell:startup → Enter)
- 6Or use Task Scheduler: trigger "At log on" with 30-second delay
- 7Also: disable "Offline Files" if enabled:
- 8Control Panel → Sync Center → Manage offline files → Disable
- 9Disable network adapter power management in Device Manager
FIXES THIS IN 5 MINUTES
Fix Windows Mapped Network Drives Disappear at Login 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