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

  • warning: Declaration of views_handler_filter::options_validate(&$form, &$form_state) should be compatible with views_handler::options_validate($form, &$form_state) in /web/sites/ on line 0.
  • warning: Declaration of views_handler_filter::options_submit(&$form, &$form_state) should be compatible with views_handler::options_submit($form, &$form_state) in /web/sites/ on line 0.
  • warning: Declaration of views_plugin_style_default::options(&$options) should be compatible with views_object::options() in /web/sites/ on line 0.
  • warning: Declaration of views_plugin_row::options_validate($form, &$form_state) should be compatible with views_plugin::options_validate(&$form, &$form_state) in /web/sites/ on line 0.
  • warning: Declaration of views_plugin_row::options_submit($form, &$form_state) should be compatible with views_plugin::options_submit(&$form, &$form_state) in /web/sites/ on line 0.

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)

EnableLinkedConnections = 1 (REG_DWORD)

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


( Try Multi Commander, A file manager for professionals )

Copyright (c) 2015 - Mathias Svensson