Share Mapped Drives with Elevated Admin in Regedit
When User Account Control (UAC) is enabled on Windows, the operating
system creates two separate logon tokens for administrators: a filtered
standard user token and an elevated administrator token. Because mapped
network drives are tied to the specific logon session, drives created
under standard user privileges are unavailable to elevated applications.
You can resolve this issue by configuring the
EnableLinkedConnections registry entry, which synchronizes
network shares between both the filtered and elevated access tokens.
Step-by-Step Configuration via Regedit
Follow these steps to enable network drive preservation across administrative elevations:
- Open the Registry Editor
- Press
Windows Key + Rto open the Run dialog box. - Type
regeditand pressEnteror click OK. - Click Yes if prompted by User Account Control.
- Press
- Navigate to the System Policy Key
In the Registry Editor address bar, navigate to the following path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
- Create the EnableLinkedConnections Value
- In the left pane, ensure the System key is selected.
- Right-click on an empty area in the right pane, select New, and click DWORD (32-bit) Value.
- Name the new value:
EnableLinkedConnections
- Modify the Value Data
- Double-click the newly created
EnableLinkedConnectionsentry. - Set the Base to Hexadecimal.
- Change the Value data field from
0to1. - Click OK to save the changes.
- Double-click the newly created
- Restart the System
- Close the Registry Editor.
- Restart your computer to apply the new policy.
After rebooting, Windows will link the logon sessions. Any network drives mapped in your standard user desktop session will automatically be accessible to software, command prompts, and scripts executed with elevated administrative rights.