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:C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NoExit -Command Set-Location -LiteralPath '%L'
-
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.




@CiaranWelsh
Hey there, tried that still can't see it added in context menu. Weird. Do you know how to undo the changes of that script? I'd like to start again in a VM (which I only realized should be where I test stuff like this first...) Sadly I forgot to backup regedit before this script... I'd really appreciate it