Windows 10 Repeatedly Disconnects Network Drives

A few weeks ago, I upgraded from Windows 7 Ultimate to Windows 10 Pro. The most frustrating problem has been that mapped drives on my server frequently disconnect. One of my database programs relies on a mapped drive and keeps crashing. If I had File Explorer open, it loses its location:

Group Polcy Drive Maps 1

The outages were very brief:  I could immediately connect to the location again.

I was wondering if I needed to go back to Windows 7. Then I realized that other Windows 10 machines on the network were having the same problem. So something is wrong with the 2012 R2 Essentials server?

One 2010 article talked about disabling SMB2 to solve app crashes, but you’d think SMB2 would be working by now. Finally I found this article:

Following Windows 10 upgrade, mapped drives disconnect briefly

It turns out that if drives are mapped in group policy and the policy specifies Replace, the drive will disconnect and then reconnect every time group policy is refreshed. As of Windows 8.1, the group policy refresh happens not only at logon but periodically in the background while users are working.

The solution? Change the group policy to Update rather than Replace the drive mapping. In the Group Policy Object (GPO) where drive maps are defined, edit User Configuration > Preferences > Windows Settings > Drive Maps.

Here is the original Spiceworks thread:

Windows 10 losing mapped drives

There are several posts about the same issue under Windows 8.1, for example:

New Background Drive Mappings in Windows 8.1

That one explains the background update principle and concludes with this:

WARNING: As of the Windows 8.1 Preview if you set a drive mapping to “Remove” or “Replace” it will forcefully disconnect the drive and close any open files you have to that location.

Confirming in the Event Log

For a while, I was keeping track of when the machine got disconnected from the server. Now that I know what to look for, I can see that a group policy refresh completed shortly after each disconnect. Filtering the System event log on

Source = GroupPolicy (Microsoft-Windows-GroupPolicy)
Event IDs = 1501, 1503 (user policy completed, with or without change)

Group Polcy Drive Maps 2

For example:

Lost connection 8/2 2:42pm, group policy update finished 2:43pm.
Lost connection 8/2 4:41pm, group policy update finished 4:42pm.
Lost connection 8/3 8:33am, group policy update finished 8:34am

It looks like the group policy refresh happens about every two hours.

I did see one error on my client machine after changing the drive map policy:

Log Name:      System
Source:        Microsoft-Windows-GroupPolicy
Event ID:      1085
Level:         Warning
Description:   Windows failed to apply the Group Policy Drive Maps settings. Group Policy Drive Maps settings might have its own log file. Please click on the "More information" link.

So far that seems like a one-time occurrence so I’m going to ignore it.

6 thoughts on “Windows 10 Repeatedly Disconnects Network Drives

  1. Bob

    But this also means new drives will not be mapped again onece the user restarts, or disconnect the drive manually and then restart.
    E.g. the drive will only be updated if it exists.
    Or am I misstaking here?

  2. Guido

    For most preferences, this behavior can be disabled by disabling background policy refresh in the machine policies. Unfortunately, this option is missing for the drive maps extension. This appears a bug in the default admx files to me. If you manually edit the admx to ‘repair’ this option, you can disable the background refresh for drive maps and the issue goes away.

  3. andreas

    1. do you mean you left it on replace and edited the admx to disable the backgound refresh for drive maps?
    2. what dit you do exactly to the admx? and wich admx was it?
    3. i have disconnecting drive maps with wired laptops. my drive maps are all on update. do you think setting it on replace and disable refresh will fix it?
    kind regards,

  4. Mark Berry Post author

    Guido, Andreas,

    Why would you not want to refresh group policy in the background?

    Why would you not want to use Update for drive maps?

  5. Jeff

    So if for example I manually disconnect the drive, and then map it to a different location, the update option doesn’t change the mapping back to how it should be in the script.
    So if a user decides, I’m going to map my M drive to \\server1\share and the gpo say it should be \\server\share, it will stay at server1. I don’t want that. If the mapping has changed, I want it back to server. I can replace this, but then you get the issue you described.
    Update actually seems to have the same effect as create…

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.