Mapped network drives don't work in Windows 10 version 1809

  1. Compumind's Avatar
    Posts : 365
    Windows 7 Pro, 10 Pro, Various Linux Builds, Internet Security
       3 Weeks Ago #1

    Mapped network drives don't work in Windows 10 version 1809


    Symptoms

    You experience the following issues in Windows 10, version 1809:

    • In Windows Explorer, a red X appears on the mapped network drives.
    • Mapped network drives are displayed as Unavailable when you run the net use command at a command prompt.
    • In the notification area, a notification displays the following message:Could not reconnect all network drives.

    Workaround

    You can work around this issue by running scripts to automatically reconnect mapped network drive when you log on the device. To do this, create two script files, and then use one of the workarounds, as appropriate.

    Scripts

    Create a script file named MapDrives.cmd

    The script file includes the following scripts. The file should be run at a regular (non-elevated) command prompt:

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


    Create a script file named MapDrives.ps1

    The script file includes the following scripts. The file should be run at a regular (non-elevated) command prompt:

    $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 "There was an error mapping $MappedDrive.RemotePath to $MappedDrive.LocalPath"
    }
    }
    $i = $i - 1
    if($error.Count -eq 0 -Or $i -eq 0) {break}
    Start-Sleep -Seconds 30
    }


    Workarounds

    Workaround 1: Create a startup item

    Note This workaround works only for the device that has network access at logon. If the device has not established a network connection by the time of logon, the startup script won't automatically reconnect network drives.

    • Copy the script file (MapDrives.cmd) to the following location:

      %ProgramData%\Microsoft\Windows\Start Menu\Programs\StartUp
    • Copy the script file (MapDrives.ps1) to the following location:

      %SystemDrive%\Scripts\
    • A log file (StartupLog.txt) will be created in the %TEMP%\ folder.
    • Log off, and then log back on to the device to open the mapped drives.

    Workaround 2: Create a scheduled task

    • Copy the script file MapDrives.ps1 to the following location:

      %SystemDrive%\Scripts\
    • In Task Scheduler, select Action > Create Task.
    • On the General tab in the Create Task dialog box, type a name (such as Map Network Drives) and description for the task.
    • Select Change User or Group, select a local user or group (such as LocalComputer\Users), and then select OK.
    • Select the Run with highest privileges option.
    • On the Triggers tab, select New, and then select At log on for the Begin the task field.
    • On the Actions tab, select New, and then select Start a program for the Action field.
    • Type Powershell.exe for the Program/script field.
    • In the Add arguments (optional) field, type the following:
      -windowsstyle hidden -command .\MapDrives.ps1 >> %TEMP%\StartupLog.txt 2>&1
    • In the Start in (optional) field, type the location (%SystemDrive%\Scripts\) of the script file.
    • On the Conditions tab, select the Start only if the following network connection is available option, select Any connection, and then select OK.
    • Log off, and then log back on to the device to run the scheduled task.

    Workaround 3: Group Policy settings

    If the mapped drives are defined through the Group Policy settings, update the action of the drive maps to Replace. This will delete the existing mapped drive and create the mapping again on each logon. Any settings on the mapped drive that are changed from the Group Policy settings will be lost on each logon. You may also have to run the gpupdate command (together with the /force parameter) to update the Group Policy settings.


    Source: https://support.microsoft.com/en-us/...0-version-1809
    Last edited by Compumind; 3 Weeks Ago at 16:45.
      My ComputerSystem Spec

  2. Compumind's Avatar
    Posts : 365
    Windows 7 Pro, 10 Pro, Various Linux Builds, Internet Security
       3 Days Ago #1

    Update -

    It appears that this is now resolved in the latest 1809 push:

    https://www.howtogeek.com/fyi/micros...than-expected/

    Please check your systems which are impacted and confirm.

    Thanks.
      My ComputerSystem Spec

  3. Brink's Avatar
    Posts : 34,331
    64-bit Windows 10 Pro build 18290
       3 Days Ago #2

    Yep.

    Mapped drives issue now resolved. See "Current Status" table on first post for more details.

    Windows 10 October 2018 Update version 1809 Now Re-Released - Windows 10 Forums

    Date Current Status Affected Platforms Details
    December 5, 2018 3:00 PM PT Resolved
    • Windows 10, version 1809
    • Windows Server 2019
    • Windows Server, version 1809
    Mapped drives may fail to reconnect after starting and logging onto a Windows device.

    Symptoms include:

    • In File Explorer, a red "X" appears on the mapped network drives.
    • Mapped network drives show as "Unavailable" when you run the net usecommand from a command prompt.
    • In the notification area, a notification displays, "Could not reconnect all network drives."

    Resolved: KB4469342 addresses the issue that may cause mapped drives to fail to reconnect after starting and logging onto a Windows device. This supersedes KB4471218 for workaround scripts to automatically reconnect a mapped network drive when you log on to the device.
      My ComputersSystem Spec


 

Related Threads
I'd like to mount Google Drive as a mapped network drive. (Then use the drive letter for programs so I can get the size of files/folders in my cloud storage, search for specific file/folders as well as able to search for file dups). I've...
Windows Defender helps protect your PC against malware (malicious software) like viruses, spyware, and other potentially unwanted software. Malware can infect your PC without your knowledge: it might install itself from an email message, when you...
Hello All. I have a user at work that has a laptop as her main work use (docking station at work, then takes it home to work at home). we have a list of mapped network drives that we use here, including a personal drive. however when this...
I have a medium sized network running. We are currently migrating and updating our shared folder systems. The old system is running Win 2k8 R2 and still has the old mapped drives running what we haven't migrated. The new shared folders are on a new...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 23:43.
Find Us