Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jtcmedia
Forked from davecan/open_powershell_here.md
Last active December 10, 2017 20:22
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 jtcmedia/5e000da438822dc78d3e938735178333 to your computer and use it in GitHub Desktop.
Save jtcmedia/5e000da438822dc78d3e938735178333 to your computer and use it in GitHub Desktop.
How to enable "Open PowerShell Here" context menu in Windows 10

After checking multiple tutorials I had to take pieces from each of the following to get this to work on my Win10 system:

Basically it uses the steps from the first article, but under the background path from the second article. Neither article on its own worked for me.

Steps:

  1. Open regedit and go to path HKEY_CLASSES_ROOT\Directory\background\shell.

  2. Create new key powershellmenu.

  3. Change the Default value of the powershellmenu key to Open in PowerShell. (or whatever)

  4. Create new key command under powershellmenu.

  5. Change the Default value of the command key to:

    C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NoExit -Command Set-Location -LiteralPath '%V'

Then try right-clicking in some folder and it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment