Could Not Reconnect all Network Drives: 5 Solutions to Use

Everything you need to disable and fix the network alert on your PC

Reading time icon 7 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team Read more

Key notes

  • If you get could not reconnect all network drives on your PC, it might be because your OS is outdated.
  • You can solve this problem by creating and running an official batch file.
  • Another excellent solution to this issue is to update your operating system.

You will receive different system notifications when your PC is connected to a specific network. Among these notifications, we have the alert that says: could not reconnect all network drives.

While this default notification lets you know that some devices from your network cannot be currently used, it can also be a false positive. In this guide, we will show you how to disable the notification.

Why does Could not reconnect all network drives message appear?

Below are some of the reasons you get could not reconnect all network drives error message:

  • Outdated PC: If your PC is outdated, you will likely get this error message when you connect your network drives. The solution to this is to update your operating system.
  • Wrong settings: Sometimes, some settings in GPO or Regedit can be the cause of could not reconnect to all network drives. You need to make the necessary changes to eliminate the error message.

How can I fix Could not reconnect all network drives error?

Here’s what to do first:

  • If this notification concerns a driver currently disconnected from your computer, you only have to re-establish the actual connection. For example, if we’re talking about an external hard drive that’s currently not recognized by your PC, and if this specific external hardware causes the actual alert, we should unplug and re-plug the USB cord.

1. Update your PC

  1. Press the Windows key + I and select Update & Security.
    update and
  2. Click the Check for updates button.
    check for could not reconnect all network drives
  3. Finally, download and install all available updates.

At times, could not reconnect all network drives issue might be due to an outdated operating system. Downloading and installing the latest patches should do the trick here.

2. Use a batch file from Microsoft

2.1. Create a startup file

  1. Press the Windows key, type note, and select Notepad.
    notepad
  2. Copy and paste the script below on Notepad: PowerShell -Command "Set-ExecutionPolicy -Scope CurrentUser Unrestricted" >> "%TEMP%\StartupLog.txt" 2>&1
    PowerShell -File "%SystemDrive%\Scripts\MapDrives.ps1" >> "%TEMP%\StartupLog.txt" 2>&1
  3. Press the Ctrl key + S to save the file.
  4. Now, change the File name to MapDrives.cmd and choose All Files as the Save as type.
  5. Click the Save button.
    cmd could not reconnect all network drives
  6. Next, copy the MapDrives.cmd file and navigate to the path below: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
  7. Paste the file into the StartUp folder.
    startup
  8. Next, open a new Notepad window and copy and paste the script below: $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
    }
  9. Now, press the Windows key + S, set the File name to MapDrives.ps1, and Save as type as All files.
  10. Click the Save button.
    ps1
  11. Copy the MapDrives.ps1 file and click your C: drive in the left pane.
  12. Next, click the New folder icon at the top and name the folder Scripts.
    new folder could not reconnect all network drives
  13. Finally, paste the MapDrives.ps1 file into the Scripts folder and restart your PC.

If you keep getting could not reconnect all network drives error message, you can fix it using the batch file from Microsoft. If this method does not work for you, you can try running the batch file following the second method.

2.2. Use the Task Scheduler

  1. Leave the MapDrives.ps1 file in the Scripts folder, as shown in the solution above.
  2. Press the Windows key, type task, and select the Task Scheduler option.
    task scheduler
  3. Now, choose Action > Create Task.
    create task could not reconnect all network drives
  4. Type the name (something like Map Network Drives) and description of the task in the Create Task dialog box under the General tab.
    mapdrive
  5. Click the Change User or Group option, select a local user or group, and then click the OK button.
    username could not reconnect all network drives
  6. Next, choose New on the Triggers tab.
    triggers
  7. Choose At log on under the Begin the task section.
    at log on
  8. Now, choose New on the Actions tab.
    gpedit
  9. For the Action field, choose Start a program.
    start a program could not reconnect all network drives
  10. Enter Powershell.exe in the Program/script field.
  11. Next, type the command below in the Add arguments (optional) field: -windowstyle hidden -command .\MapDrives.ps1 >> %TEMP%\StartupLog.txt 2>&1
  12. Type the location (%SystemDrive%\Scripts\) of the script file In the Start in (optional) field.
  13. Now, select Start only if the following network connection is available in the Conditions tab.
  14. Select Any connection and click OK.
  15. Finally, sign out and sign in to your PC to run the scheduled task.

If creating a startup file does not eliminate could not reconnect all network drives option, you can use the Task Scheduler.

3. Make Window wait for the connection before mapping network drivers

  1. Press the Windows key + R, type gpedit.msc, and click OK.
    gpedit could not reconnect all network drives
  2. Navigate to the path below in the left pane: Computer Configuration > Administrative Templates > System > Logon.
  3. Now, double-click Always wait for the network at computer startup and logon to open.
    always
  4. Tick the Enabled radio button.
  5. Finally, click the Apply button, followed by OK, and restart your PC.
    enabled

In some cases, could not reconnect all network drives message shows up because the policy that tries to map your drive is initiated at startup. However, there might be no drive connected at this point.

Hence, you must change the settings to wait until the drive is ready.

4. Disconnect network drive

  1. Press the Windows key + E to open Windows Explorer and click This PC in the left pane.
  2. Find the driver that’s not connected and right-click on its icon.
  3. From the list of options that are displayed click on the Disconnect network drive entry.
    disconnect
  4. Or, from the main window status bar, click on the Map network drive and choose Disconnect network drive.

5. Disable the Windows cannot connect to all network drivers message at start-up

  1. Press the Windows key + R, type regedit, and click OK.
    regedit could not reconnect all network drives
  2. Navigate to the path below in the pane: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlNetworkProviderpath
  3. Now, double-click on RestoreConnection in the right pane. If the option is not available, do the following:
    • Right-click the NetworkProvider option and choose New > DWORD (32-bit)Value.
      dword
    • Now, type RestoreConnection as the DWORD name and double-click it.
      restore
  4. Set the Value data to 0 and click the OK button.
    value data
  5. Finally, restart your PC.

How to disable Could not reconnect all network drives on Windows 10 notification?

To disable could not reconnect all network drivers on Windows notification, you need to go through the Group Policy Editor. We have shown how to do this in solution four above.

The troubleshooting solutions we listed in our article should help you fix or disable could not reconnect all network drives message displayed on your Windows 10 computer.

If you can’t map a network drive on your PC, check our detailed guide to fix it easily. Network drives are known for issues, and we already wrote about WD My Cloud not showing on network in Windows 11 in a separate guide.

Feel free to let us know the solution that helped you fix this issue in the comments below.

More about the topics: windows 10 fix