- You use Group Policy Preference (GPP) or logon scripts to map network drives during logon.
- User Account Control (UAC) is enabled.
- The following UAC Group Policy setting is configured to Prompt for credentials: User Account Control: Behaviour of the elevation prompt for administrators in Admin Approval Mode
- The EnableLinkedConnections registry entry is configured. See the detail to configure the registry entry.
- When you log on, mapped drives are available as expected.
- When you run an elevated command prompt as administrator, the mapped drives are unavailable in the elevated command prompt.
When drive mappings are created, the system creates symbolic link objects ("DosDevices") that associate the drive letters to the UNC paths. These objects are specific for a logon session and are not shared between logon sessions.
Note The EnableLinkedConnections registry entry forces the symbolic links to be written to both linked logon sessions that are created, when UAC is enabled.
When the UAC policy is configured to Prompt for credentials, a new logon session is created in addition to the existing two linked logon sessions. Previously created symbolic links that represent the drive mappings will be unavailable in the new logon session.
- In Local Group Policy Editor, locate the following Group Policy path:
Local Computer Policy\Windows Settings\Security Settings\Local Policies\Security Options
- Configure the following policy to Prompt for consent:
User Account Control: Behaviour of the elevation prompt for administrators in Admin Approval Mode
Method 2Map the required drives again in the elevated session, for example, by using a .bat script file.
Detail to configure the EnableLinkedConnections" registry entry
- In Registry Editor, locate and then click the following registry subkey:
- 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.
Artikel-id: 3035277 – senaste granskning 25 feb. 2015 – revision: 1