Mapped Network Drives don’t work in Windows 10 v2004
There are several fixes or workarounds for this issue. On my systems, I had to remove the Windows credentials for the target computer using the Credential Manager. Then, I remapped the drives, typed in the username and password for the network share. That did the trick on my Windows 10 v2004 systems.
Reset the stored credentials using Credential Manager
Removing the stored username & password for the network share, and then remapping the network drive helps in some cases.
- Open Control Panel → User Accounts → Credential Manager
- Select Windows Credentials
- Under Windows Credentials, click the chevron next to the name of the network computer (or NAS) that hosts the share.
- Click Remove to delete the stored credentials of that particular computer or share.
- When the Delete Windows Credential dialog appears asking, “Are you sure you want to permanently delete this Windows credential?”, click Yes to continue
- Exit the Credential Manager window.
- Open This PC and disconnect the mapped drive.
- Restart Windows.
- Map the network drive again, with the Reconnect at sign-in option enabled.
- Restart Windows to check if the drive mapping works.
That should fix the problem. If not, follow the next procedure.
Add the “ProviderFlags” registry value
Adding the ProviderFlags
(DWORD 32-bit) registry value and set its data to 1
helps some users, especially if your mapped network drive points to an old SMBv1 share. Follow these steps:
- Right-click Start, click Run, type
regedit
, and then click OK. - Locate the following registry subkey:
HKEY_CURRENT_USER\Network\[drive letter]
Note: The
[drive letter]
placeholder represents the mapped drive. - Create a new DWORD (32-bit) value named
ProviderFlags
- Double-click
ProviderFlags
value. In the Value data box, type1
- Repeat the above procedure for each mapped network drive on the computer.
- Click OK, and exit Registry Editor.
- Restart Windows.
See if the mapped network drive persists across reboot.
Credits to user LeeB1430 for the above fix.
Map network drives using a batch file
If none of the above fixes help, then, as a workaround, you can map the network drive at every startup using a batch file.
- Copy the following lines and paste them in Notepad. Change the network or computer name, the share name, and the drive letter accordingly to match yours.
timeout /t 30 net use z: "\\networkname\sharedfolder" /persistent:no
The parameter
persistent:no
is equivalent to unchecking the Reconnect at sign-in option in the Map Network Drive dialog box. - Save the file as
mapdrive.bat
- Open the Startup folder of your user profile by typing
shell:startup
in the Run dialog.(To know more about theshell:
commands, check out this article.) - Place the batch file
mapdrive.bat
or its shortcut in the Startup folder.
That’s it. The drive mappings are created at every startup rather than making it persistent across reboots.
Important
The batch file method assumes that the username and password of the network drive are already stored under Windows Credentials. To store it, you may map the network drive interactively using the Map a Network Drive menu option, with the Reconnect at sign-in enabled. Then, disconnect the mapped network drive. That way, the username & password get stored in the Credentials Manager.
Alternatively, you can add the user name and password of the network share using the Add a Windows Credential option.
Note: A similar workaround using PowerShell is available in the Microsoft Knowledgebase article Mapped network drive may fail to reconnect in Windows 10
Hope one of the fixes or workarounds helped you access your mapped network drives without any issues in Windows 10 2004.
Source from:
https://www.winhelponline.com/blog/mapped-network-drives-fix-windows-10-v2004/
No comments:
Post a Comment