Skip to content

Instantly share code, notes, and snippets.

@the-eric-kwok
Forked from davecan/open_powershell_here.md
Last active May 30, 2018 03:13
Show Gist options
  • Save the-eric-kwok/cdd224adc6d4621d44efe7b3b177b855 to your computer and use it in GitHub Desktop.
Save the-eric-kwok/cdd224adc6d4621d44efe7b3b177b855 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:
    powershell.exe -NoExit -Command Set-Location -LiteralPath '%V'
  1. Right-click on powershellmenu key and select Permissions, then set permissions to Full control for the Administrators group. (or whatever group/user)

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