Skip to content

Instantly share code, notes, and snippets.

@robderickson
Created October 8, 2019 19:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robderickson/8260f6d28f29fc123c63d18b43d12ba4 to your computer and use it in GitHub Desktop.
Save robderickson/8260f6d28f29fc123c63d18b43d12ba4 to your computer and use it in GitHub Desktop.
How to enable 'Run as a different user' for Explorer.exe
  1. Run regedit.exe elevated.
  2. Take ownership of HKEY_CLASSES_ROOT\AppID{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}.
  3. Rename the RunAs value to _RunAs.
  4. Create a new shortcut on your Desktop for C:\Windows\System32\runas.exe.
  5. Name it something like Admin-Explorer.
  6. Right-click the new shortcut and click Properties.
  7. Change the target to: C:\Windows\System32\runas.exe /noprofile /user:<domain>\<username> "c:\windows\explorer.exe /separate"
  8. (Optional) Change the icon.
  9. (Optional) Pin to taskbar.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment