Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Decimation/884ad6045976293f4c2ad87017231a89 to your computer and use it in GitHub Desktop.
Save Decimation/884ad6045976293f4c2ad87017231a89 to your computer and use it in GitHub Desktop.
Add "Open Windows Terminal here as admin" to context menu
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\OpenElevatedWT]
@="Open Terminal here as admin"
"Icon"="%userprofile%\\pictures\\icons\\wt.ico"
[HKEY_CLASSES_ROOT\Directory\shell\OpenElevatedWT\command]
@="powershell.exe \"Start-Process -Verb RunAs wt.exe\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenElevatedWT]
@="Open Terminal here as admin"
"Icon"="%userprofile%\\pictures\\icons\\wt.ico"
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenElevatedWT\command]
@="powershell.exe \"Start-Process -Verb RunAs wt.exe\""
[HKEY_CLASSES_ROOT\Drive\shell\OpenElevatedWT]
@="Open Terminal here as admin"
"Icon"="%userprofile%\\pictures\\icons\\wt.ico"
[HKEY_CLASSES_ROOT\Drive\shell\OpenElevatedWT\command]
@="powershell.exe \"Start-Process -Verb RunAs wt.exe\""
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenElevatedWT]
@="Open Terminal here as admin"
"Icon"="%userprofile%\\pictures\\icons\\wt.ico"
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenElevatedWT\command]
@="powershell.exe \"Start-Process -Verb RunAs wt.exe\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment