Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Strange behaviour With Explorer

Reply
Thread Tools Display Modes

Strange behaviour With Explorer

 
 
Broonie
Guest
Posts: n/a

 
      04-02-2009
Hi There,

I'm running Vista SP1 in a domain. I'm logged into my PC with a domain
admin account and we are runnig UAC. If i run explorer as "normal" I
can see all my mapped drives properly. If I run explorer as admin
(right-click run-as) I can no longer see my home drive (which is
mapped to a network share) and my other mapped drives (which are done
through a logon script) show as disconnected.

Also when I'm using other apps, for example Security Templates tool,
and I want to browse to a location to locate files or folders, the
drives I get are the ones I see when I run explorer as admin i.e. i
can't see my home drive.

Anyone got any ideas.
 
Reply With Quote
 
 
 
 
Andrew McLaren
Guest
Posts: n/a

 
      04-04-2009
Broonie wrote:
> I'm running Vista SP1 in a domain. I'm logged into my PC with a domain
> admin account and we are runnig UAC. If i run explorer as "normal" I
> can see all my mapped drives properly. If I run explorer as admin
> (right-click run-as) I can no longer see my home drive (which is
> mapped to a network share) and my other mapped drives (which are done
> through a logon script) show as disconnected.


Hi Broonie

Although this behaviour can be frustrating, I believe it is "by design".

Mapped drives are specific to the User context. For example, If you map
a drive as "User 1", then log in again as "User 2", you won't see the
same mapped drives that User 1 defined, you need to map them again as
User 2.

In the "Run as Admin" case, you understandably *think* you are running
as the same user, just with elevated privileges. But those elevated
privileges come in the form of a new and different user token. So, the
MPR and WNet modules consider that you are a different user when you run
"as administrator" - because you have a different user token - and give
you a new, unique set of drive mappings: initially empty, if you haven't
defined any mapped drives "as administrator".

The easy part of the solution is to map the drives you need, while in
the context of running "as administrator". The tricky part is that
Windows Explorer can only run a single instance in a session; so you
cannot use the Explorer "Tools, Map Network Drive" option to map the
drives - Explorer will still be seeing your user context as a
un-elevated user. The slightly clunky workaround is to open a Command
Prompt "as administrator" and map the drives at the command line, using
a "NET USE" command. The drives mapped this way should be visible to
other processes which you are running "as administrator", even if they
don't show up in Explorer.

This behaviour is unintuitive, non-obvious and kind of annoying. But,
that's how it works :-)

Hope this helps a bit,

Andrew

--
amclar at optusnet dot com dot au
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange behaviour! Mhaxx Windows Vista Administration 6 10-13-2008 12:07 PM
strange behaviour in excel after SP1 Delboy Windows Vista General Discussion 2 03-20-2008 02:38 PM
Strange Windows Explorer Behaviour Nick Mason Windows Vista General Discussion 3 11-17-2007 01:03 PM
File Explorer Delays/General Strange Behaviour Holmesy Windows Vista Performance 0 10-05-2007 09:49 AM
Strange behaviour of my computer explorer Jason Windows Vista General Discussion 2 02-16-2007 05:23 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59