I have a script in my Windows which helps me to mapped different shared locations as a drive.
net use G: \\server1\shared_folder /PERSISTENT:YES
On each logon, it used to mapped successfully (shared a blog on this too), however after upgrading my system to Windows 10, it doesn’t work. So, I figured out one quick solution which might also be helpful for you guys.
Solution:
Simply, we need to modify the registry.
- Open RegEdit
- Then, browse to:
HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Windows -> CurrentVersion -> Policies -> System
- On the right, you will see ConsentPromptBehaviorAdmin, ConsentPromptBehaviorUser … etc.
- Click on empty space, ADD DWORD(32bit), then name it as “EnableLinkedConnections“.
- Double click it and set the data to 1.
- Reboot and you will see the mapped drives showing.
This has worked for me like a charm.
Cheers,
Udhyan.