Skip to content

Instantly share code, notes, and snippets.

@CiaranWelsh
Forked from davecan/open_powershell_here.md
Created August 18, 2021 08:30
Show Gist options
  • Save CiaranWelsh/33e88c288714eed583444ef234ebadf1 to your computer and use it in GitHub Desktop.
Save CiaranWelsh/33e88c288714eed583444ef234ebadf1 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 '%L'

  6. 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