Ever wonder why you get network authentication errors when you are trying access a mapped network share from a process that was elevated with UAC? That is because each administrative account, starting with Windows Vista and newer, runs with two security tokens. One with low rights that is the default and then the administrative level token. When you run something as administrator or change a setting that requires the UAC prompt, your token is switched and runs the action under that context.
Network drives that were mapped under the default low rights context token are naturally not available to other tokens which is why you get authentication errors. The workaround is to apply a registry tweak that allows the local security authority to use all tokens currently assigned to the logged in user and access a network connection with any that work.
- Open Registry Editor by typing in regedit on the Start Menu and hitting Enter.
- Navigate through HKEY_LOCAL_MACHINE, Software, Microsoft, Windows, CurrentVersion, Policies and System.
- Right click on System and select New and then DWORD value.
- Enter EnabledLinkedConnections as the name.
- Right click on the new EnabledLinkedConnections and select Modify.
- Set the value to 1 and click OK.
- Reboot your PC.