After checking multiple tutorials I had to take pieces from each of the following to get this to work on my Win10 system:
- https://www.howtogeek.com/165268/how-to-add-open-powershell-here-to-the-context-menu-in-windows/
- https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html
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:
- Open regedit and go to path
HKEY_CLASSES_ROOT\Directory\background\shell. - Create new key
powershellmenu. - Change the
Defaultvalue of thepowershellmenukey to Open in PowerShell. (or whatever) - Create new key
commandunderpowershellmenu. - Change the
Defaultvalue of thecommandkey to:
powershell.exe -NoExit -Command Set-Location -LiteralPath '%V'
- Right-click on
powershellmenukey and selectPermissions, then set permissions toFull controlfor the Administrators group. (or whatever group/user)
Then try right-clicking in some folder and it should work.