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

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

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


    Last Updated: 16 Nov 2018 at 16:45

    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
    Compumind's Avatar Posted By: Compumind
    16 Nov 2018


  1. Posts : 5,048
    Windows 10/11 Pro x64, Various Linux Builds, Networking, Storage, Cybersecurity Specialty.
       #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 Computer


  2. Posts : 68,954
    64-bit Windows 11 Pro for Workstations
       #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 Computers


 

  Related Discussions
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:57.
Find Us




Windows 10 Forums