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.
Mapped network drive fail to reconnect after upgrading to Windows 10 1809
In this case, a pop-up window appears in the notification area with the alert:
Click here to check the status of your network drives.
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
}
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).
- Create a new task, specify its name (reMapNetworkDrives), select what task should be launched on behalf of the Builtin\Users group;
- On the Triggers tab, select that the task should run when any user logs on to the system (At log on);
- On the Actions tab, in the Program/script field, specify the path to the MapDrives.cmd file;
- On the Conditions tab you can enable the options Network -> Start only if the following network connection is available -> Any connection;
- 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.
After the policy is updated on the clients when the user logs in, the mapped network drives will be deleted and reassigned.
5 comments
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
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.
This does not work at all.
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.
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.