Skip to content

Instantly share code, notes, and snippets.

@AndreasHassing
Created March 29, 2017 07:57
Show Gist options
  • Select an option

  • Save AndreasHassing/de536b02fba0b14cf33fe2bf2763650f to your computer and use it in GitHub Desktop.

Select an option

Save AndreasHassing/de536b02fba0b14cf33fe2bf2763650f to your computer and use it in GitHub Desktop.
Get a "Open PowerShell In This Directory" context menu in Windows Explorer directories - only works for Windows 10+, for older versions of Windows: Google it.
Windows Registry Editor Version 5.00
; Download and run this .reg file to install the context menu
[HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShell]
@="&Open PowerShell Here"
"Icon"="powershell.exe"
"Position"="Top"
[HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShell\command]
@="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit -Command Set-Location -LiteralPath '%V'"
Windows Registry Editor Version 5.00
; Download and run this .reg file to uninstall the context menu
[-HKEY_CLASSES_ROOT\Directory\Background\shell\powershellmenu]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment