UPDATE 01/30/2014
There is a registry hack in Windows 7 to enable this feature again (although I wouldn’t necessarily suggest it… MS doesn’t support it).
You can naviGate to HKEY_CLASSES_ROOT\AppID\{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2} and clear out the value for RunAs. This will enable the ability to do a runas and have explorer run in a separate process. If you don’t want to go this route, see the original post below.
In XP we have a nifty little work-around to logging in as an admin without having to log the user off the desktop. At the command line we can type:
C:\> runas /user:USERNAME@Domain “explorer /e, /separate”
Then it prompts us for our password and up pops a separate explorer shell running as our privileged account. We can then proceed to do as we need.
In Windows 7 this doesn’t work 🙁 I did a little research and Microsoft now no longer allows us to run explorer as two separate users, simultaneously. On the one hand this isn’t as much of a problem because Powershell supports UNC paths so we can get to wherever we need to go in the new shell. I’ve just started reading “Learn Windows Powershell In a Month of Lunches” and I’m liking PS a lot already. MS seems to be moving towards many of their apps working on top of Powershell (like the Exchange GUI) so it’s a good idea to learn. You can right-click on Powershell and choose “Run as Administrator” to load it as yourself. Unless you’re not comfortable with the command line (and you should be if you’re an administrator), I can’t see the need to use the explorer GUI anymore. However, I wanted to see if I could figure out how to do it…
Let’s say you don’t want to learn Powershell or you have some reason for wanting the GUI (and I’ll set my devil’s advocacy aside for a moment). I did figure out a way to do it shortly after my frustrating moment of reading about MS’s change with Explorer (I can’t complain too much though, it IS more secure), but not quite like XP. MS stopped us from running Explorer as two simultaneous users. All you have to do is kill the explorer process and then start it again as another user. Since XP, we’ve had a clean way to do this without having to completely logoff the machine or close any other processes open on the PC. Through this whole procedure, any running processes that were open as the user will stay open and running under their user context. So here’s the step-by-step:
I only did minimal testing with this shell changing. However, I didn’t notice any issues with the desktop or user context getting “messed up” because of the switching. Microsoft intentionally made the CTRL + ALT + SHIFT method for a way of cleanly exiting and restarting explorer. Desktop icons, background, folder permissions (I only checked one) were appropriate to whoever explorer was currently running as. I strongly suggest you do some testing yourself, however. If anything you’ll get more familiar with the process.
I like to give credit when I can, but the only thing I would give credit to someone else for is learning the XP command for running as another user. It’s been one of my tools for so long I can’t remember, though :\ I did a quick Google search to find something familiar and this page is definitely one I’ve been on before: http://blogs.msdn.com/b/aaron_margosis/archive/2004/07/07/175488.aspx
You must be logged in to post a comment.
5 Responses to “Running Explorer as a Different User: Windows 7”
June 30th, 2012 at 6:14 am
You still can’t access your (admin’s) files without setting permissions for that local user. *sigh*
You can access them from any other process BUT the explorer – like cmd, even Start’s own search box!!
Something surely weird has been done to the explorer process.
July 4th, 2012 at 7:38 am
That’s odd. I’ll have to play around with it when I have the time at work and see what it does. Are you doing this in a domain environment or was it all local user accounts you were experimenting with? But at the same time, it proves my point in only needing to use Powershell 🙂
January 30th, 2014 at 6:06 am
Sorry mate, you CAN use it in windows 7, it just take some work.
dXGKk4D439SP
January 30th, 2014 at 6:06 am
http://stackoverflow.com/questions/4753279/run-explorer-exe-as-administrator-user-within-windows-7
January 30th, 2014 at 7:10 am
Thanks for sharing! That seems like an awfully messy way of doing it, though. Some time after making this post I found another way…. a reghack, that is better than this I think. I updated this post with that information; at the top. However, if you are a business I wouldn’t suggest doing it. My organization is quite large and we tried to see if MS would support the use of this and they refused… citing it was breaking the actual design and they would have no way of knowing what else it might cause.