Home Networking

Workaround for Mapped Drive Missing After Restart

Mapped drives can vanish after a restart due to various issues. Learn how to troubleshoot network settings, permissions, and group policies to resolve this problem effectively.

3 min read
A screenshot of Windows File Explorer displaying mapped network drives.

Mapped drives can disappear after a restart due to network connectivity issues, user permission restrictions, or group policy settings. To resolve this, check your network connection settings, use a script to automatically remap the drives, verify user permissions, and explore any group policy settings that might affect drive mapping.

Why do mapped drives disappear after a restart?

Mapped drives may disappear after a restart for several reasons. Commonly, network connectivity issues prevent the system from accessing the drives. If the network connection is unstable or the drives are unavailable during startup, they may not remap successfully. User permissions can also block access to those drives, resulting in their disappearance. Additionally, group policy settings within an organization’s network might enforce rules that affect how drives are mapped upon startup.

How to check network connection settings

To ensure your computer is properly connected to the network, follow these steps:

  1. Check the physical network connection. Ensure the Ethernet cable is securely plugged in or that you’re connected to the correct Wi-Fi network.
  1. Verify that you can access other network resources. Open File Explorer and try to access another shared drive or folder on the network.
  1. Run the ping command to test connectivity to the server hosting the mapped drives:

    ping [server_name]

If you can’t access other network resources or the ping fails, troubleshoot your network connection by checking network hardware, restarting your router, or resolving Wi-Fi issues.

Using a script to remap drives automatically

To automatically remap missing drives at startup, you can create a batch script. Here’s how:

  1. Open Notepad and enter the following command for each drive you want to remap:

    net use Z: \\server\share_name /persistent:yes

    Replace Z: with the desired drive letter and \\server\share_name with the actual path to your network share.

  1. Save the file as remap_drives.bat.
  1. Press Windows + R, type shell:startup, and hit Enter to open the Startup folder.
  1. Place the remap_drives.bat file in this folder.

The next time you restart your computer, this script will execute and remap the drives automatically.

Verifying user permissions for network drives

User permissions can affect access to mapped drives. To verify permissions:

  1. Right-click on the mapped drive in File Explorer and select Properties.
  1. Go to the Security tab and check the list of users and groups.
  1. Ensure your user account is listed and that it has the necessary permissions (Read, Write, etc.). If not, contact your network administrator to adjust the permissions.

Exploring group policy settings affecting mapped drives

Group policies can dictate how drives are mapped in a network environment. To explore these settings:

  1. Press Windows + R, type gpedit.msc, and hit Enter to open the Group Policy Editor. (Note: This option may not be available in some Windows versions, such as Home editions.)
  1. Navigate to User Configuration > Administrative Templates > Windows Components > File Explorer.
  1. Look for settings related to drive mapping and check if any policies are preventing your drives from being mapped on startup.

If you identify any restrictive policies, consult with your IT department to adjust them.

Conclusion

If mapped drives still do not appear after following these steps, double-check your network settings, ensure the server is online, and verify that your user account has not been restricted. Consulting with your IT department regarding any recent changes to group policies may also be necessary.