Windows OS Hub
  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange

 Windows OS Hub / Windows 10 / Mapped Network Drives Not Reconnecting in Windows 10 1809

November 29, 2018 Windows 10

Mapped Network Drives Not Reconnecting in Windows 10 1809

Users who recently upgraded to Windows 10 October 2018 Update (1809) began to complain that mapped network drives are not automatically reconnected at Windows startup. After logging in the user sees a big red cross on the icons of all mapped network drives in File Explorer. If you run the command net use in the command prompt, then in front of all the mapped drives you will see the status Unavailable. Neither user-attached network drives, nor GPO-mapped drives automatically reconnect.

Contents:
  • Mapped network drive fail to reconnect after upgrading to Windows 10 1809
  • Logon script to force reconnect mapped network drives
  • Reconnecting mapped network drives via GPO

Mapped network drive fail to reconnect after upgrading to Windows 10 1809

A red "X" appears in the icon for a mapped network drive in windows 10 18093

In this case, a pop-up window appears in the notification area with the alert:

Could not reconnect all network drives.

Click here to check the status of your network drives.

Could not reconnect all network drives in windows 10

Network drives simply cease to be mounted automatically after restarting the Windows 10 1809 device. Mapped network drives are displayed in File Explorer, but connection to them is unavailable. The problem occurs with folders connected from NAS devices, and with shared folders on other Windows / Linux computers. This bug in Windows 10 1809 update is confirmed by Microsoft and is planned to be fixed in early 2019. At the moment, the Microsoft offers a workaround to the problem of restoring connectivity to the mapped network drives (see KB4471218 — Mapped network drive may fail to reconnect in Windows 10, version 1809). To do this, it is suggested to run a certain script at logщт, or if mapped drives are connected using group policy, change the GPO settings.

Logon script to force reconnect mapped network drives

Run the notepad (notepad.exe), copy the following PowerShell code into it and save the file to the C:\PS directory named MapDrives.ps1:

$i=3
while($True){
$error.clear()
$MappedDrives = Get-SmbMapping |where -property Status -Value Unavailable -EQ | select LocalPath,RemotePath
foreach( $MappedDrive in $MappedDrives)
{
try {
New-SmbMapping -LocalPath $MappedDrive.LocalPath -RemotePath $MappedDrive.RemotePath -Persistent $True
} catch {
Write-Host "Shared folder connection error: $MappedDrive.RemotePath to drive $MappedDrive.LocalPath"
}
}
$i = $i - 1
if($error.Count -eq 0 -Or $i -eq 0) {break}
Start-Sleep -Seconds 30
}

MapDrives.ps1: powershell script to reconnect mapped drives

This script selects all inaccessible mapped drives and tries to reconnect them in persistent mode.

Create another MapDrives.cmd script file with the following code:

PowerShell -Command "Set-ExecutionPolicy -Scope CurrentUser Unrestricted" >> "%TEMP%\StartupLog.txt" 2>&1
PowerShell -File "%SystemDrive%\PS\MapDrives.ps1" >> "%TEMP%\StartupLog.txt" 2>&1

This code allows you to correctly call the PowerShell script described above. You can place this batch file into the user’s startup by copying the MapDrives.cmd file to the %ProgramData%\Microsoft\Windows\Start Menu\Programs\StartUp directory.

You can also create a scheduler task to run the MapDrives.cmd file when a user logs on. You can create a scheduler task using PowerShell or from the Task Scheduler GUI console (Taskschd.msc).

  1. Create a new task, specify its name (reMapNetworkDrives), select what task should be launched on behalf of the Builtin\Users group; reMapNetworkDrives using task Scheduler
  2. On the Triggers tab, select that the task should run when any user logs on to the system (At log on);
  3. On the Actions tab, in the Program/script field, specify the path to the MapDrives.cmd file;
  4. On the Conditions tab you can enable the options Network -> Start only if the following network connection is available -> Any connection; Start task only if the following network connection is available
  5. Reboot the computer or logoff/logon under your user account. When the user logs in, the script should run, which will re-create all mapped drive connections.

Please note that by default network drives connected in the elevated mode are not available in normal mode and vice versa. But you can fix it – see the article Mapped drives are not available from an elevated apps.

Reconnecting mapped network drives via GPO

If you map network drives to users using domain group policies, you need to change the policy settings in order to connect the drives correctly.

Open the domain policy that connects the drives, and in the section User Settings -> Preferences -> Windows Settings -> Drive maps, find your network drive assignment policy (policies) and change the Action type from Update to Replace.

GPP policy to map shared network folders to drive

After the policy is updated on the clients when the user logs in, the mapped network drives will be deleted and reassigned.

5 comments
0
Facebook Twitter Google + Pinterest
previous post
Setup Error: Windows Cannot Find Microsoft Software License Terms
next post
Remote IIS Management in Windows Server 2016/2012 R2

Related Reading

How to Disable NetBIOS and LLMNR Protocols in...

April 9, 2021

Enable Windows Lock Screen after Inactivity via GPO

April 8, 2021

Can’t Copy and Paste via Remote Desktop (RDP)...

March 31, 2021

UAC: This App Has Been Blocked for Your...

March 30, 2021

How to Unlock a File Locked by Any...

March 29, 2021

5 comments

dk November 29, 2018 - 11:03 am

KB4469342 – fix for the Mapped Network drive bug in Windows 10 1809:
Addresses an issue that may cause mapped drives to fail to reconnect after starting and logging onto a Windows device

Reply
Shashaank Agarwal December 28, 2018 - 10:25 am

I got the solution of WIndows 10 map network drive connect.
Please install MediaCreationTool1809 and switch on firewell setting. then restart your system.
You’ll got activate your map network drive.

Reply
Jo May 22, 2020 - 2:10 pm

This does not work at all.

Reply
Shashaank Agarwal May 25, 2020 - 10:51 am

i tried and its working
install https://go.microsoft.com/fwlink/?LinkId=691209
MediaCreationTool1809 and install it after installation just check your network setting and allowed to network sharing.
now check it’s work fine.

Reply
ed March 29, 2021 - 6:14 pm

Here it is March 2021 and I’m landing back on this page, so obviously Microsoft as usual can’t make a fix and keep it fixed. This one described above actually worked for me. One tweak I had to discover on my own was to ensure the user credentials were added as windows credentials. Group policy notes above should be called out as not available without additional hacking up windows on home edition. I just don’t get how microsoft can’t do the simple things reliably in this day and age. Power plan settings, need I say more.

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange
  • Windows 10
  • Windows 8
  • Windows 7
  • Windows Server 2016
  • Windows Server 2012 R2
  • Windows Server 2008 R2
  • PowerShell
  • VMWare
  • MS Office

Recent Posts

  • How to Disable NetBIOS and LLMNR Protocols in Windows Using GPO?

    April 9, 2021
  • Enable Windows Lock Screen after Inactivity via GPO

    April 8, 2021
  • How to Create and Manage Scheduled Tasks with PowerShell?

    April 7, 2021
  • Updating Windows VM Templates on VMWare with PowerShell

    April 5, 2021
  • Running Multiple IIS Websites on the Same Port or IP Address

    April 1, 2021
  • Can’t Copy and Paste via Remote Desktop (RDP) Clipboard

    March 31, 2021
  • UAC: This App Has Been Blocked for Your Protection on Windows 10

    March 30, 2021
  • How to Unlock a File Locked by Any Process or SYSTEM?

    March 29, 2021
  • Configuring a Domain Password Policy in the Active Directory

    March 26, 2021
  • Using Native Package Manager (WinGet) on Windows 10

    March 24, 2021

Follow us

woshub.com
  • Facebook
  • Twitter
  • RSS
Popular Posts
  • Booting Windows 7 / 10 from GPT Disk on BIOS (non-UEFI) systems
  • Removable USB Flash Drive as Local HDD in Windows 10 / 7
  • Error Code: 0x80070035 “The Network Path was not found” after Windows 10 Update
  • How to Create a Wi-Fi Hotspot on your Windows 10 PC
  • How to increase KMS current count (count is insufficient)
  • How to Configure Google Chrome Using Group Policy ADMX Templates?
  • How to Download APPX Installation File from Microsoft Store in Windows 10 / 8.1
Footer Logo

@2014 - 2018 - Windows OS Hub. All about operating systems for sysadmins


Back To Top