The Windows operating system automatically recognizes connected external devices and maps them accordingly. This saves you from having to manually map external network drives. However, sometimes due to issues with User Account Control, you may encounter the error Unable to reconnect all network drives.

A simple disconnect and reconnect of network drives can help you resolve this error. However, if this does not work, you can configure the connection policy using the Group Policy Editor to resolve the error. Here we will discuss this and other solutions to fix Unable to reconnect all network drivers error in Windows.

1. Install the latest Windows updates

Microsoft recommends installing the latest update to resolve the issue on an older version of Windows computer. Check if a new feature update is available in the update center and install it to see if it helps to fix the error.

To install Windows 11 updates:

  1. Hurry Win + I open Settings.
  2. Open the Windows Update tab in the left pane.
  3. Click on Check for updates. Windows will search for and display pending updates.
  4. Click on Download and install and wait for the update to finish installing.
  5. Once installed, restart your PC and check for improvements.

2. Disconnect network drives

If you know which drive is causing the error, a simple disconnect and reconnect can help resolve the error.


To disconnect the player:

  1. Hurry Win + E open File Explorer.
  2. In the left pane, right-click on This PC and select Disconnect network drive. In Windows 11, select Show more options to display the player disconnect option.
  3. Windows will show all network drives connected to your system.
  4. Select the drive you want to disconnect and click OKAY.

3. Force Windows to wait for the network when starting the computer

As mentioned earlier, the error Unable to remap all network drives often occurs due to automatic mapping of network drives. To solve this problem, you can make Windows wait for the network when the computer starts and connects using the Group Policy Editor.

Note that the Group Policy Editor is only available on Windows Pro, Edu, and Enterprise editions of the operating system. Read our guide on how to enable GPEdit on Home Windows if you are using the Home edition of the operating system, then follow the steps below.

To modify the connection policy using GPEdit:

  1. Hurry Win + R to open Run.
  2. Type gpedit.msc and click OKAY to open the Group Policy Editor.
  3. In the Local Group Policy Editor, navigate to the following policy:
    Computer Configuration > Administrative Templates > System > Logon
  4. In the right pane, locate and double-click Always for network on computer startup and login Politics.
  5. In the pop-up dialog, select Enabled.
  6. Click on Apply and OKAY to save changes.

4. Map drives using a batch script

If editing the connection policy in the Group Policy Editor did not help, you can use a batch script to fix this error. This method involves creating a new batch script for the Command Prompt and PowerShell that will run on startup and map the necessary drives.

To create a batch script to map drives on Windows:

  1. Open a new Notepad file. To do this, press Win + R open To runtype notepadand click OKAY.
  2. Next, copy and paste the following script:
    PowerShell -Command "Set-ExecutionPolicy -Scope CurrentUser Unrestricted" >> "%TEMP%StartupLog.txt" 2>&1
    PowerShell -File "%SystemDrive%ScriptsMapDrives.ps1" >> "%TEMP%StartupLog.txt" 2>&1
  3. Then press CTRL+S to open the to safeguard dialogue.
  4. For the File nametype batch.cmd.
  5. Then click on the Save as type drop-down list and select All the files.
  6. Click on to safeguard to save the file.
  7. Next, we will create a powershell script. To do this, open a new Notepad file.
  8. In the Notepad file, copy and paste the following script:
    $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. Again, press CTRL+S to open the to safeguard dialogue.
  10. Here, type MapDrives.ps1 as file name.
  11. Then click on the drop-down menu to save as type and select All the files.
  12. Click on to safeguard to save the file.
  13. Then you have to move the batch.cmd folder at the start folder on your Windows computer.
  14. To do this, press Win + R open To run.
  15. Then copy and paste the following path to access the start case:
    C:ProgramDataMicrosoftWindowsStart MenuProgramsStartUp
  16. move it batch.cmd folder at the start case.
  17. Then press Win + E to open File Explorer. In the left pane, click Windows C below This PC to access the VS: conduct.
  18. Right click and select New > Folder.
  19. Rename the folder as Scenarios.
  20. Now move the MapDrives.ps1 folder at the Scenarios case.

Once done, restart your PC. Windows will automatically run the MapDrives script on PC restart and resolve the error unable to reconnect all network drives.

5. Use Task Scheduler to run the script

If for some reason Windows fails to run the MapDrives.ps1 script on startup, you can use Task Scheduler to perform this task. All you have to do is create a new task to start a program and configure it to run the MapDrives script created earlier. Here’s how.

  1. press the To win touch and type Task scheduler. Then click on Task scheduler to start the program.
  2. Then click on Stock then click Create a task.
  3. In the Last name field, type a name for the task.
  4. Then click on Change user or group option below Security options.
  5. Type the username or group you want to assign the task to and click Check the names.
  6. When finished, click OKAY.
  7. Then select the Run with highest privileges option under Security options.
  8. Then open the Triggers tongue.
  9. Click on New.
  10. Click it start task drop down and select At login.
  11. Then open the Shares tab and click the New button.
  12. Make sure here that Stock the drop-down list is set to Start a program.
  13. Then click on the Browse button.
  14. Now select the MapDrives.ps1 script you created in the previous step and click Open.
  15. In the Add Arguments field, type the following:
    -windowsstyle hidden -command .MapDrives.ps1 >> %TEMP%StartupLog.txt 2>&1
  16. Then in the start in field, type the following:
  17. Click on OKAY to save changes.
  18. Then open the Conditions tongue.
  19. Here, select the Start only if the following network is available option.
  20. From the drop-down menu below, select Any connection
  21. Click on OKAY to save changes.

Finally, restart your PC to apply the changes. The task scheduler will work the same as the command prompt script added to the startup folder and run the script to map drives on login.

6. Disable Network Drive Notification Using Registry Editor

If you want to stop the Unable to reconnect all network drives notification, you can do so by editing a registry entry. Here’s how.

Note that incorrect modification of registry entries can lead to system malfunction. We recommend that you create a system restore point before proceeding with the steps below.

Alternatively, you can also enable automatic registry backups in Windows 11 to be safer.

Once done, follow the steps below to disable unable to reconnect all network drives notifications in Windows.

  1. Hurry Win + R open To run.
  2. Type regedit and click OKAY to open Registry Editor. Click on Yes at the UAC prompt.
  3. In Registry Editor, navigate to the following location:
  4. In the right pane, find the Restore connection assess. If it does not exist, you will need to create a new value.
  5. To create a new value, right click on the network provider button and select New > DWORD (32-bit) Value.
  6. Rename the value to Restore connection.
  7. Right click on Restore connection and select Edit.
  8. In the Value data field type 0 and click OKAY to save changes.

Close Registry Editor and restart your PC. While this won’t fix the error, it will likely prevent the annoying error notification popup every time you log in.

Solve “Could not reconnect all network drives” error in Windows

While the troubleshooting tips in the article are helpful, you can also use a third-party network drive manager for proper network drive management. These tools ensure that network drives are properly mapped after login and minimize the risk of network drive errors.