Opening Explorer shell with admin privileges on XP (with IE7 installed)

I used to demote my user account so that it had no admin priveleges and used a 'sudo-like' trick where you create a shortcut to IE6 and enabled the 'Run with different credentials' option to open a shell window as local admin so I could install and uninstall things, etc.

When I upgraded to IE7 this stopped working - IE7 launches Windows Explorer separately.

I've tried running Windows Explorer with different credentials but this does not work.

Does anyone know how to re-enable this behaviour so that I don't have to run my computer on a daily basis with administrator privileges?


I always use the following command to launch a separate explorer shell on XP/IE7. Looks like /separate switch is undocumented. Haven't seen it much on web, till recently.

Use this syntax in "Target" of an Explorer.exe shortcut: runas /user:ComputerName\AdminName "C:\WINDOWS\explorer.exe /separate"

Replace ComputerName with yours (may be your Domain), ditto AdminName. Remember, all this above goes in the "Target" field of a Shortcut to C:\WINDOWS\explorer.exe

Enter the Admin password in the Pop up Command Prompt and you should see the separate explorer shell (running under the administrator account

If you change the Toolbar Background of Explorer while logged in as the Admin using gpedit.msc (for xp Pro), when you start a RunAs Admin Explorer instance from the User session, you will see the unique background... and KNOW you're running Admin Explorer. Instructions here: My Example: Opening Explorer shell with admin privileges on XP (with IE7 installed)
I have tested this on XP x64 with IE7 and it works great.


In Windows XP, you can run Windows Explorer as any other user, including "Administrator", by following the "Option 2" instructions on Aaron Margosis's blog post entitled RunAs with Explorer:

In short:

  1. Log onto the machine as the user that you eventually want to RunAs.
  2. Navigate to the Folder Options control panel, and check the option "Launch folder windows in a separate process".

I use this all the time, and so I have included the following *.cmd script in my new machine build process:

rem Tested on Windows XP only!
reg load "HKU\TempDefaultProfileHive" "%ALLUSERSPROFILE%\..\Default User\ntuser.dat"
reg add "HKU\TempDefaultProfileHive\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "SeparateProcess" /t REG_DWORD /d 1 /f
reg unload "HKU\TempDefaultProfileHive"

This script turns on the "Launch folder windows in a separate process" setting for all new profiles that are created based on the machine's default user profile.

All the pieces to the puzzle have been posted, but they just need to be put together.

To run Windows Explorer as Administrator under a non-Administrator account, you have to:

  1. log into the computer as the Administrator
  2. open Windows Explorer
  3. goto the Tools menu and select Folder Options...
  4. goto the View tab and check Launch folder windows in a separate process

If you log into the computer as a non-Administrator, running

runas /user:administrator explorer.exe

will now work. This can probably be set via the registry, but I think this is the easiest way.

You can use runas.exe to run a program (for instance a windows console) under different credentials. I have a shortcut on my desktop called 'su' that links to this:

%windir%\system32\runas.exe /noprofile /user:administrator cmd

This will start a console box asking for the administrator password.

@Huppie - runas is great, but launching explorer doesn't seem to work. I can run cmd just fine, or my AD console, but explorer just fails without throwing any sort of error.

Windows Explorer is (sadly) a bit too integrated with windows, it cannot be opened with runas... try using a different file browser (for instance Total Commander).

Gulzar has an (undocumented) solution to run explorer with runas:

%windir%\system32\runas.exe /user:administrator "explorer.exe /separate"

If your question relates to your own computer, I cannot recommend SudoWin enough: it allows you to perform the "sudo" trick (supposedly a well-known Linux/Unix command) under Windows. In other words: it lets you run programs under your own account, but with admin privileges. This means that programs retain the preferences and settings they would have if they would run under your account (registry, user profile), but then with admin privileges, protected by the password of your own account. It's a feature you can't live without once you've got to know it, and the implementation is great!

[EDIT] And did I mention it's completely free (open source)?

I'm not sure if this link solves your problem, but it boils down to:

  1. Shift-Right Click -> Run As...
  2. Enter Administrator credentials

Best you might be able to do is check the "Open Folder in new Process" option (or something like that), then do runas. Caveats include:

  1. All folder windows must be closed, or it'll reuse the existing process token
  2. It's slightly slower
  3. To revert out of admin mode, you'll need to close all folder windows
  4. Any windows opened while in admin mode will also be adminned

This is a trick for Vista's UAC - YMMV on XP, and with a completely separate account.

I'd recommend just getting yourself another filemanager for admin tasks. Xplorer2 seems usable to me.

This works well for me:

runas /u:administrator "explorer /separate"

I can use it just as well for a domain user that has local adimin and have access to his network shares as well!

runas /u:domain\username "explorer /separate"

I can also spec a share if needed and BooM! Explorer opens up at that folder :)

runas /u:domain\username "explorer \server\share, /separate"

All quotes and commas must be typed as shown and if the share name has spaces, double quoted. Like ...

runas /u:domain\username "explorer "\server\share name", /separate"

Hope this helps someone.

This works for me to:

I am loged in as a non privileged User in a Treminal Server domain

From "Start" -> "Run" Open: runas.exe /u:administrator "explorer.exe /separate"

After hitting "OK" a "CMD" Window opens, asking for the machins "Administrator password", and "PLING" a brand new Explorer Windowe opens. Now you can do all of your file handeling as if you were loged into the Administrator account.

Category: internet explorer Time: 2008-08-17 Views: 1

Related post

  • opening a particular application always with admin privileges 2012-07-20

    Is there a way I can open a particular application always with Admin Privileges ? I mean to say , just double click the application and the application starts with the admin privileges. I need to edit a lot of xml files in the C:\ directory if window

  • Start an app from command line with Admin Privileges 2013-05-21

    This question already has an answer here: Is there any 'sudo' command for Windows? 11 answers In unix you can sudo ... if you want to do something that requires elevated permissions. Is there a windows equivalent? In cmd I can type regedit to open th

  • How to run a program with admin privilege 2011-12-25

    I need to run a program as a different user + make it run with admin privileges (Run as administrator). I use the 'runas' for running the program as a different user How can I run the program as admin with that command? (or a different one so will gi

  • Does Workflow run with admin privileges or user? 2012-08-21

    Does Sequential Workflow run with admin privileges or user's privileges who run a workflow? --------------Solutions------------- Workflows can be run as admin, user or a workflow user called by a user. All can be set in central admin to restric the a

  • Automatic increase in brightness when an application is run with admin privileges 2013-01-30

    I don't know why, but sometimes or always (!) I have noticed that whenever I run an application with admin privileges on Windows 7, brightness automatically increases. Is it with everybody? If it is even with a few, what is the reason for this? -----

  • Is it possible to start all programs with admin privileges? 2013-04-03

    These days I'm having problems with "Run as Administrator" for most of my executables like Visual Studio, Command Prompt and sometimes even Notepad. It started with Visual Studio having problems copying files to the bin directory, then I couldn'

  • How do I run commands on a remote machine with admin privilege using powershell 2013-04-05

    How do I run commands on a remote machine with admin privilege (example: running as Run as Administrator) using PowerShell. So far I have tried start-process powershell.exe -verb runas -argumentlists ".\test.ps1" This is failing. --------------S

  • How to call a program to be run with admin privileges but under the same user (Windows Command Prompt) 2014-09-11

    I need to invoke a program with admin privileges from command prompt. it should prompt to the user an alert such as: I found many answers like: runas.exe /user:administrator %~dp0\MY_PROGRAM.BAT But it does not help me, because that in this way, the

  • Audit trail for all actions taken with admin privileges 2015-09-07

    PCI DSS 10.2 says, "Implement automated audit trails for all system components to reconstruct the following events:" and 10.2.2 continues, "All actions taken by any individual with root or administrative privileges." I am struggling to

  • Can't create windows 10 powershell shortcut with admin privilege 2016-01-20

    I want to create shortcut to powershell with admin privileges, but start as administrator option is disabled and i am using admin account on Windows 10. I can start admin powershell via context menu, but i wan't to create keyboard shortcut. ---------

  • run ps1 with admin privileges and unrestricted policies with bat 2016-07-07

    I have a test.bat to run a test.ps1 with admin privileges and unrestricted policies, and both are in the same folder (local PC), but the bat does't run ps1. Whats wrong? PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process Pow

  • Windows 7 schedule a process start with admin privileges for a standard user 2015-01-05

    On my personal Win7 machine, my user account is a standard account, and there is also an Administrator account which I obviously control. One app that I have start up with Windows needs admin privileges to work correctly. It's AIDA64 sidebar, in case

  • Windows 2008 R2 Scheduled Task Not Running With Admin Privileges even if granted? 2011-05-09

    I have a scheduled task that is running as USER. I have checked the box "Run with highest privileges" in the scheduled task properties. The task is a powershell script that, among other things, reboots the system. The script executes and runs no

  • How to execute a command with admin privileges and access to files of the logged in user? 2011-09-13

    I have some problems understanding sudo. I am logged in on a terminal as an non-admin/non-root user. This "normal" user is not in the sudoers file (and shouldnt be, in my opinion). Now I try to execute a command that needs admin/root privileges

  • Schedule a task with admin privileges without a user prompt in windows 7 2014-06-18

    In windows 7, I'd like to schedule a program to be run with administrative privileges, without having the user need to respond to a prompt (which requests elevated privileges) every time the scheduled task is run. Is there any way to accomplish this

  • Making sure a batch is run with admin privileges 2010-10-12

    We use batch files to do simple installations of COM servers - mainly a few file copies and regsvr32s. Since regsvr32 writes to the registry's local machine hive, the batch must be run with administrative privileges. I'd like to be able to recognize

  • AD users in Snow Leopard with admin privileges 2009-12-11

    I've just authenticated my first Apple machine onto the active directory infrastructure. Yay! The only thing I'm having problems with is specifying that the AD user is an administrator, and able to make changes. I don't see any interface for that. Is

  • Open a program as Admin on Windows 7 with no prompt? 2010-09-07

    I'm having this problem with two programs: Visual Studio 2008 and Notepad++. If I'm making a webpage and I add a debugger statement to the javascript, it opens up a prompt asking me if I want to debug. If I then click "new instance of VS2008", i

  • How to run cmd with Admin privileges using command line 2013-12-30

    Is there a way to run/start cmd as administrator through the command line or a batch file programming in Windows 8? I want to create a batch file which has administrative privileges without any prompt to the user. --------------Solutions-------------

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 1.630 (s). 13 q(s)