If you have a home or work network set up for your Windows PC, you may also be mapping network shares to drive letters. Mapped drives are very convenient as they allow accessing network files and folders just like a regular local drive. Sometimes in Windows 10, mapped drives do not always automatically and reliably reconnect at logon. Let us see how to fix this issue.
If a mapped network drive wasn't reconnected, any program that tries to access resources on the mapped network drive fails.
When you create a mapped network drive, there is an option 'Reconnect at logon' which you can check so that every time Windows logs on, they are automatically mounted using the current user's logon credentials.
If you check 'Connect using different credentials', then you can specify a different user name and password.
The problem: When Windows 10 logs on, there is a timing issue which causes it to attempt to map the network drives before the network is available. This results in them being unavailable sometimes. If you press Refresh in Windows Explorer or double click the drive, they instantly become available.
To fix the issue Windows 10 Does Not Reconnect Mapped Network Drives, you need to do the following.
- Paste the following text inside Notepad and save as a *.cmd file.
@echo off :Start timeout /t 5 /nobreak >NUL if exist X:\NUL goto End net use X: \\server\share /USER:domainname\username /PERSISTENT:YES if ERRORLEVEL 1 goto Start :End
Replace the domainname\username portion with the appropriate values.
- In Notepad, press Ctrl + S or execute the File - Save item from the File menu. This will open the Save dialog. There, type or copy-paste the name "reconnect.cmd" including quotes. Double quotes are important to ensure that the file will get the "*.cmd" extension and not *.cmd.txt. You can save the file to any desired location.
- Move the *.cmd file you created to the Startup folder. Refer to the following article: How to add or remove startup apps in Windows 10. In short, press Win + R shortcut keys together and type the following into the Run box:
This will open your Startup folder in File Explorer.
- Move the reconnect.cmd file there and you are done.
That's it. Many thanks to our reader "Jezze" for sharing this tip.