Top 6 Ways to Fix Could Not Reconnect All Network Drives Error on Windows 10
Each external device on your computer uses specific network drivers. The drivers are usually mapped at startup, which makes them recognizable by your computer. But sometimes there may be some issues while mapping the drives. If you encounter the Unable to reconnect all network drives on your computer error, there are ways to fix it.
The error mainly occurs if there is a delay in connecting to the drive. It can also happen if an external device is faulty or disconnected. You can try these six fixes to resolve the error.
1. Force Windows to wait for the network
If the error occurs because Windows was trying to map drives before they were available, you can force Windows to wait for the network. To do this, modify the Local Group Policy.
Step 1: Press Windows + R keys to open the dialog box.
2nd step: Type gpedit.msc in the text box and click OK to open the Local Group Policy Editor window.
Step 3: Click on Computer Configuration, tap Administrative Templates, then select System and finally, tap Login.
Step 4: In the right pane, search for “Always wait for the computer to start and for the network to connect.” Right click on it and select the Edit option.
Step 5: Select the On button, then press OK and Apply.
Step 6: Restart your computer to update the changes.
2. Use command scripts to map drives
Another solution would be to create scripts that run at startup. Here is how you can do it.
Step 1: Open Notepad and paste this script.
PowerShell -Command "Set-ExecutionPolicy -Scope CurrentUser Unrestricted" >> "%TEMP%StartupLog.txt" 2>&1 PowerShell -File "%SystemDrive%ScriptsMapDrives.ps1" >> "%TEMP%StartupLog.txt" 2>&1
2nd step: Click on the File option, choose Save As and name the file in .cmd format to save it on your computer.
Step 3: Open another Notepad and copy and paste this script.
$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 }
Step 3: Name the file as DriveMap.ps1.
Restart your computer and these scripts will run on startup.
3. Disconnect the network drive
Sometimes disconnecting all of your network drives might be the solution you need to clear the error. Here is how you can do it.
Step 1: Open File Explorer, right click on This PC option and tap on Disconnect Network Drive.
2nd step: Locate the network drive that has the problem. Right click on it and choose the Disconnect option.
To note: Normally, the problematic drive has a red X icon on it.
Step 3: Restart your computer and your network will only map connected devices.
4. Reconnect the actual external drive
If the error is caused by a disabled external device, one possible solution may be to reconnect the actual drive. By reconnecting or properly positioning the drive, you allow the computer to re-map it.
5. Disable Windows startup notification
Disabling notifications can also help correct the “Unable to reconnect all network drives” error. Follow these steps to change the settings.
Step 1: Press Windows + R keys and type regedit in the Run dialog box.
2nd step: Locate the following key and click on it.
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlNetworkProvider
Step 3: In the right pane, double-click Restore Connection and set the value to 0. Click OK to save the changes.
If connection restoration is not available, you can add it via the Network Provider option. Here is how you can do it.
Step 1: Scroll down to Network Provider.
2nd step: Right-click on it to select New, then D-Word, and rename the new folder as Restore Connection. Set the value to 0.
Then restart your PC.
6. Use the task scheduler to map drives at startup
You can also correct the error by scheduling a task that runs on startup. Use these steps to create and run tasks.
Step 1: Open File Explorer and use the Search tab to locate the DriveMap.ps1 folder created in the solution above. Copy the file.
2nd step: Go to the Windows search bar, type Task Scheduler, and open the app.
Step 3: Expand the Action option and choose Create task.
Step 4: Go to the General tab and name the file.
Step 5: Press the Change User or Group button to select a local user or group.
Step 6: Move to the bottom of the page and check the Run with highest privileges option, then click OK.
Step 7: Go to the top of the page and select the Triggers tab.
Step 8: In the Start task option, choose On connection, and then click OK.
Step 9: Go to the Actions tab and tap New.
Step 10: Specify the actions to be taken by choosing the Start a program option.
Step 11: Browse or paste your PowerShell script and press OK.
Step 12: Select the Conditions tab and scroll to Network.
Step 13: Check Start only if the following network is available.
Step 14: From the drop-down menu, choose Any Network and click OK.
Restart the computer to confirm if the error is gone.
Reconnecting all network drives
It is possible to clear the “Unable to reconnect all network drives” error by forcing Windows to wait for the network. Sometimes disconnecting and then reconnecting external drivers can help resolve the error. Other times running scripts can help map drives on startup.
Last updated on July 6, 2021
The above article may contain affiliate links that help support Guiding Tech. However, this does not affect our editorial integrity. The content remains impartial and authentic.
(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.src=”http://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5&appId=1652915528311925″;fjs.parentNode.insertBefore(js,fjs);}(document,’script’,’facebook-jssdk’));