We experienced this strange problem after upgrading our Virtual Desktops to Windows 10. When we logged on to our Virtual Desktops we didn’t see any of our mapped drives. At first we thought that there is some problem with the logon script. We tried running the script manually and it ran just fine and the mapped drives showed up. So, there must be something going on at the logon time.
After doing some research online we found out that the script was running but it was running in the admin context. It is related to User Account Control (UAC). One of the post mentioned that if we run command prompt as a user and also as an administrator, the mapped drives would show up on one of them. On our system they showed up when we ran command prompt as an administrator.
Anyway, the solution to resolve this problem was to add a registry key called EnableLinkedConnections .
Here how to do it:
- Open Registry Editor.
- In Registry Editor, locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System - Right-click Configuration, click New, and then click DWORD (32-bit) Value.
- Name the new registry entry as EnableLinkedConnections.
- Double-click the EnableLinkedConnections registry entry.
- In the Edit DWORD Value dialog box, type 1 in the Value data field, and then click OK.
- Exit Registry Editor, and then restart the computer.
You should be able to see the mapped drive(s) after logging in.