Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EmeraldCoder/088d9e4723ac1df12a70 to your computer and use it in GitHub Desktop.
Save EmeraldCoder/088d9e4723ac1df12a70 to your computer and use it in GitHub Desktop.
Script to add option "Open PowerShell window here" in folder context menu
Windows Registry Editor Version 5.00
; Philippe Ouellet
; May 5, 2014
; Script to add option "Open PowerShell window here" in folder context menu
[HKEY_CLASSES_ROOT\Drive\shell\PowerShell]
@="Open PowerShell window Here"
[HKEY_CLASSES_ROOT\Drive\shell\PowerShell\command]
@="powershell.exe -NoExit -Command Set-Location -LiteralPath '%1'"
[HKEY_CLASSES_ROOT\Directory\background\shell\PowerShell]
@="Open PowerShell window Here"
[HKEY_CLASSES_ROOT\Directory\background\shell\PowerShell\command]
@="powershell.exe -NoExit -Command Set-Location -LiteralPath '%V'"
[HKEY_CLASSES_ROOT\Directory\shell\PowerShell]
@="Open PowerShell window Here"
[HKEY_CLASSES_ROOT\Directory\shell\PowerShell\command]
@="powershell.exe -NoExit -Command Set-Location -LiteralPath '%1'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment