Windows 7 "Run as Administrator" Loses Mapped Drives
-
Wednesday, January 20, 2010 8:49 PMI'm running Windows 7 and I have a mapped drive to an O: drive. I also have an environment variable for a PATH location to sqlplusw (software that lets you connect to an Oracle database). I found that in Windows 7, you have to open the cmd prompt with "run as administrator". When I do this I lose access to my mapped drives. We have many people in our company using this, so we can't have them disconnect and remap the drive every time. Is there a way to fix or workaround this?
Thanks,
Scott
Answers
-
Thursday, January 21, 2010 3:10 AM
Scott,
That has been around since Vista came out. See this discussion.
http://www.vistaheads.com/forums/microsoft-public-windows-vista-general/125180-run-administrator-loses-access-mapped-drives.html
Bill- Proposed As Answer by Andre.Ziegler Thursday, January 21, 2010 2:50 PM
- Marked As Answer by Novak WuModerator Wednesday, January 27, 2010 4:07 AM
-
Tuesday, January 26, 2010 6:57 PM
Microsoft has a work around they don't recommend:
http://www.winhelponline.com/blog/mapped-drives-are-not-seen-from-elevated-command-prompt-in-vista/
Network and Systems Manager- Marked As Answer by Novak WuModerator Wednesday, January 27, 2010 4:07 AM
All Replies
-
Wednesday, January 20, 2010 10:56 PMFor what it's worth ... may be not much:
I had odd network problems after the Win 7 upgrade on our two PCs. Then I noticed that the upgrade had installed MS drivers for the LAN adapters. When I went tothe Intel site and installed proper updated Intel drivers, things settled down ... until i ran into the next problem. -
Thursday, January 21, 2010 3:10 AM
Scott,
That has been around since Vista came out. See this discussion.
http://www.vistaheads.com/forums/microsoft-public-windows-vista-general/125180-run-administrator-loses-access-mapped-drives.html
Bill- Proposed As Answer by Andre.Ziegler Thursday, January 21, 2010 2:50 PM
- Marked As Answer by Novak WuModerator Wednesday, January 27, 2010 4:07 AM
-
Thursday, January 21, 2010 9:13 PMThanks for your response.
What I got out of that, is that I can workaround it with this...
Create a file “C:\Users\Public\mapdrive.cmd” like this:
@echo off
Net use o: /delete
Net use o: \\server\share
Create this value in the registry.
Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
Value: AutoRun
Type: REG_SZ
Data: C:\Users\Public\mapdrive.CMD
Is this all that can be done now? There's no official fix for it that allows the "administrator" to have access to the mapped drives without doing this? -
Tuesday, January 26, 2010 6:57 PM
Microsoft has a work around they don't recommend:
http://www.winhelponline.com/blog/mapped-drives-are-not-seen-from-elevated-command-prompt-in-vista/
Network and Systems Manager- Marked As Answer by Novak WuModerator Wednesday, January 27, 2010 4:07 AM
-
Wednesday, January 27, 2010 4:34 PMI've tried this, but it didn't work for me. Thanks for the suggestion.
-
Monday, June 21, 2010 4:42 AM
The registry modification workaround suggested for Vista does not seem to work for Windows 7 x64.
The .cmd file work around does work but is very cumbersome. Trying to get .cmd files to run with elevation to launch other applications that require mapped drive access is a big hassle.
Are there any alternatives or new methods?

