Keep Mounted Fileshares When Starting Program as Administrator (Windows Vista / Windows 7)

If you are running as a normal user and then start a program as administrator, You will notice that the mounted file shares you got as a normal user no longer exists.

This behavior is by design and is this why because of security measures.

This happens because when you start a program as administrator that program is run under a different login token. And mapped network shares are linked to the token you logged on with.

But by adding the registry key below you can changed that behavior.
(You need to reboot for the change to take effect)

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
EnableLinkedConnections = 1 (REG_DWORD)

Now when starting a program as administrator, It will transfer your network shares to the administrator token.

Tagged:  

( Try Multi Commander, A file manager for professionals )

Copyright (c) 2015 - Mathias Svensson