sodcalculator

10 Tech How-To

Fix Mapped Network Drives Not Available in Windows 10

Guide 10-21228 · Updated · Step by step

If your mapped network drives show a red X or “Disconnected” in Windows 10, the fix is usually to enable the “Always wait for the network” policy or run a startup script that reconnects drives after the network is ready. This article explains why mapped drives fail to connect at boot and gives step-by-step fixes for the most common causes.

Why Mapped Drives Disappear at Startup

Windows 10 maps network drives via a feature that runs when you sign in. The problem is that the network stack may not be fully initialized at that moment, especially on Wi-Fi or VPN connections. When Windows tries to map the drive before the network is ready, the mapping fails and shows as disconnected. This is not a hardware failure; it is a timing issue between the login process and the network adapter.

Another common cause is the “Fast Startup” feature, which hibernates the kernel instead of fully shutting down. On resume, the network may not be ready when the drive mapping command runs. Group Policy settings can also interfere, especially on domain-joined computers where the policy overrides local settings.

Check If the Drive Is Actually Connected

Before making changes, verify whether the drive is truly unavailable or just not auto-reconnecting. Open File Explorer and look for the mapped drive under “This PC.” If it shows a red X, right-click it and select “Disconnect,” then reconnect manually. If the drive connects manually, the issue is definitely the automatic startup timing.

You can also test the network path by opening Command Prompt and typing net use. This lists all current mappings. If the drive is listed as “Unavailable,” the mapping exists but the connection failed. If it is not listed at all, the mapping was never created.

Enable “Always Wait for the Network”

The most reliable fix is to enable a Group Policy setting that makes Windows wait for the network before running startup scripts and mapping drives. This is available in Windows 10 Pro, Enterprise, and Education editions. Home users can use the Registry method described later.

  1. Press Win + R, type gpedit.msc, and press Enter.
  2. Navigate to Computer Configuration > Administrative Templates > System > Logon.
  3. Double-click Always wait for the network at computer startup and logon.
  4. Set it to Enabled and click OK.
  5. Restart your computer.

This policy tells Windows to wait for the network to be fully available before running logon scripts. It is the official fix from Microsoft for this exact problem.

Use a Startup Script to Reconnect Drives

If the policy does not work or you are on Windows 10 Home, you can create a script that runs at login and reconnects the drives. This is a common workaround that many IT administrators use.

  1. Open Notepad and type the following command, replacing the drive letter and UNC path with your own:
    net use Z: \\server\share /persistent:yes
  2. Save the file as reconnect.bat (make sure the extension is .bat, not .txt).
  3. Press Win + R, type shell:startup, and press Enter.
  4. Copy the .bat file into the Startup folder that opens.

This script runs every time you log in and re-establishes the mapping. It is a simple and effective solution, though it may show a command prompt window briefly at startup. To hide it, you can use a VBS script that runs the batch file silently.

Disable Fast Startup

Fast Startup is a Windows 10 feature that makes booting faster by saving the kernel session to a hibernation file. However, it can cause network drives to fail because the network stack is not fully reinitialized on resume. Disabling it often solves the problem.

  1. Open Control Panel and go to Hardware and Sound > Power Options.
  2. Click Choose what the power buttons do.
  3. Click Change settings that are currently unavailable.
  4. Uncheck Turn on fast startup (recommended).
  5. Click Save changes and restart.

This is a low-risk change that only affects boot time, which is usually only a few seconds slower. Many users report that this alone fixes the mapped drive issue.

Check Group Policy for Drive Mapping

If you are on a company or school network, Group Policy may be overriding your local settings. Check whether there is a policy that specifically configures mapped drives. Open gpedit.msc and go to User Configuration > Preferences > Windows Settings > Drive Maps. If there is a policy here, it may be set to “Replace” or “Update” and could be removing your manually mapped drives.

If you have local administrator rights, you can modify or delete the policy. Otherwise, contact your IT department. A common issue is a policy that maps drives with the “Reconnect” option unchecked, which causes them to disappear after reboot.

Use the Registry for Home Editions

Windows 10 Home does not include the Group Policy Editor, but you can achieve the same effect by editing the registry. This is safe if you follow the steps exactly, but always back up the registry first.

  1. Press Win + R, type regedit, and press Enter.
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System.
  3. Right-click on the right pane, select New > DWORD (32-bit) Value.
  4. Name it WaitForNetwork and set its value to 1.
  5. Close the registry editor and restart.

This registry key has the same effect as the Group Policy setting. It tells Windows to wait for the network at logon. If the key already exists, just change its value to 1.

Frequently Asked Questions

Why does my mapped drive show a red X but still works?

A red X usually means the drive is not currently connected, but if you can access the files, it may be a stale icon. Refresh File Explorer by pressing F5. If the drive works but shows the red X, the mapping is still valid; the icon is just not updating. To fix it, disconnect and remap the drive.

How do I map a network drive permanently in Windows 10?

When you map a drive, check the box “Reconnect at sign-in.” This makes the mapping persistent. However, due to the timing issue, it may still fail. Use the “Always wait for the network” policy or a startup script to ensure it reconnects reliably.

Does the “Always wait for the network” policy slow down boot?

Yes, it can add a few seconds to the login time because Windows waits for the network to be ready. On most systems, this is negligible, but on slow networks or VPN connections, it might be more noticeable. The trade-off is that your drives will be ready when you log in.

Can I use a batch file to reconnect drives without showing a window?

Yes, you can create a VBS script that runs the batch file silently. For example, create a .vbs file with the line CreateObject("Wscript.Shell").Run "reconnect.bat", 0, False and place that in the Startup folder. This runs the batch file without displaying a command prompt window.

Why do mapped drives fail on VPN but not on the office network?

VPN connections often take longer to establish than a wired or Wi-Fi connection. The drive mapping command runs before the VPN tunnel is ready, so the connection fails. The “Always wait for the network” policy may not help if the VPN is not considered part of the “network” by Windows. In that case, use a startup script that waits a few seconds before running the net use command.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →