Subst drives and UAC
In my computer, I'm used to have a drive created with the SUBST command to map to a local folder deeply nested in my directory structure. I map it on each login for my user only by placing a bat file with the command in the startup menu. Problem is that when I need to elevate a program on that "drive" (or a program that uses it), it simply doesn't sees it. After the user/password of UAC, the program works normally, but only shows the C and D drives. I'm currently using a standard account and UAC ask me for credentials of an admin user. I've already tried the workaround proposed here: http://support.microsoft.com/kb/937624/en-us, but with no luck. Any ideas of a workaround for this annoying bug?
May 26th, 2012 12:43am

Hi, Based on my research, Im afraid that the only workaround is to run the batch file twice, once for normal privilege and the other for administrative privilege. You can also refer to the similar thread: Problem with 'subst'. Bug or Feature? Hope this helps. Jeremy Wu TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
May 28th, 2012 6:17am

Hi, Would you mind to provide me the detailed steps about how to reproduce the issue? I cannot reproduce the issue on my test machine. Thanks, Spencer Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
May 30th, 2012 8:50am

Hello Spencer Here are what I've done to reach at the error: 1) Create 2 accounts in the system, one belonging to the "administrators" group and other that doesn't (and is member of "users" only). 2) UAC is set to the highest level in control panel. 3) Login with the non-admin account. 4) Create a substed drive from a local folder. For example: SUBST g: c:\windows (any path will do here really) 5) I try to "Run as administrator" any executable file located in the substed drive (given my previous step, I might attempt to run notepad.exe elevated for instance). 6) UAC shows it's OTS dialog asking for a user/password with administrators group membership. I provide the credentials for the admin user previously created. 7) Here's the bug: instead of the program appearing and running normally, an error message (generated from Windows itself) says that the executable I just right clicked does not exists. 8) A variation: if instead of running an exe in the substed drive I run an exe in C: directly, it elevates correctly, but instead it hasn't the substed drive at all, for example it does not appears in the open/save common dialogs (while if I run non-elevated, it does appear in such dialogs). I would greatly appreciate any help! Thanks.
Free Windows Admin Tool Kit Click here and download it now
May 30th, 2012 11:53pm

Thanks Alejandro, I am doing test for the issue. Will reply you as soon as possible. :) Thanks, SpencerPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
June 1st, 2012 5:57am

Hi Alejandro, Any update? Thanks, SpencerPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
June 7th, 2012 6:59am

Hi Alejandro, that's OK. :) BR, SpencerPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
June 14th, 2012 11:18pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics