Skip to content

Instantly share code, notes, and snippets.

@hdavid0510
Last active June 11, 2020 17:54
Show Gist options
  • Save hdavid0510/c46f827480021b1ec1055acdaf6245da to your computer and use it in GitHub Desktop.
Save hdavid0510/c46f827480021b1ec1055acdaf6245da to your computer and use it in GitHub Desktop.
Windows Terminal contextmenu shortcut. 1) Windows Terminal from Microsoft Store should be installed 2) PsExec64 should be accessible by adding PATH or modding path to PsExec64.exe on reg file 3) Change [[USERNAME]] to actual username before run.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\WindowsTerminal]
@="Open Windows Terminal here"
[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\WindowsTerminal\command]
@="C:\\Users\\ [[USERNAME]] \\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"
[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\WindowsTerminalAdmin]
@="Open Windows Terminal here (admin)"
"Extended"=""
[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\WindowsTerminalAdmin\command]
@="PsExec64.exe -d wt.exe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment