How to Run Windows (File) Explorer as a Different User

avatar
Borislav Hadzhiev

Last updated: Apr 4, 2024
2 min

banner

# How to Run Windows (File) Explorer as a Different User

To run Windows (File) Explorer as a different user:

  1. Open File Explorer and paste the C:\Windows path in the address bar.

search c windows in address bar

  1. Scroll down until you find the explorer.exe executable or search for explorer.exe in the search field in the upper right corner.

  2. Press Shift and right-click on the explorer.exe file.

  3. Click on Run as different user.

right click run as different user

  1. A new Run as different user Window opens where you can type the user's credentials.

type user credentials

# Running File Explorer as an Administrator on Windows

If you need to run (File) Explorer as an administrator:

  1. Open File Explorer and paste the C:\Windows path in the address bar.

search c windows in address bar

  1. Scroll down until you find the explorer.exe executable or search for explorer.exe in the search field in the upper right corner.

  2. Press Shift and right-click on the explorer.exe file.

  3. Select Run as administrator.

right click select run as administrator

  1. On the next screen select Yes to allow Windows Explorer to run as an administrator.

select yes

  1. A new window opens where File Explorer has administrative privileges.

new window with file explorer with admin privileges

# How to Run Windows (File) Explorer as a Different User using the Registry Editor

You can also use the Registry Editor to run Windows (File) Explorer as a different user:

  1. Type registry in the search field and select Registry Editor.

start registry editor

  1. Type HKEY_CLASSES_ROOT\AppID\{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2} in the search field.

right click select permissions

  1. Right-click on the key in the left sidebar and select Permissions.

  2. Grant your user full control of the key.

This has to be done in the advanced permissions/owner page of the folder that contains the runas subkey.

  1. Rename the key from runas to _runas

  2. You can then launch Windows (File) Explorer with a different set of credentials using the runas command in Command Prompt (CMD).

cmd
runas /user:domain\username "c:\windows\explorer.exe /separate"

Then you have to enter the user's password when prompted.

# Additional Resources

You can learn more about the related topics by checking out the following tutorials:

I wrote a book in which I share everything I know about how to become a better, more efficient programmer.
book cover
You can use the search field on my Home Page to filter through all of my articles.