For as long as we can remember, Windows has had a hidden “Open command window here” option on the context menu, but who uses the command prompt these days?
How to Add “Open PowerShell here” to the Context Menu in Windows
Press the Win + R keyboard combination to open the run dialog, then type regedit and hit enter.
Once the registry editor has opened, navigate to:
Here, you will need to right click on the shell sub-key and create a new key called “powershell”.
Once you have created the key, you need to modify its default value, which can be done from the right click context menu.
In the value data field textbox, type “Open PowerShell Here”, which is the text that we want to add to the Windows context menu.
Now right click on the white space on the right hand side, create a new Key and call it command.
Then right click on the command key’s default value and choose to modify it as well.
This time, we have to set it to something special. If your version of Windows is installed into a different directory, or you are using a different version of powershell, you’ll need to adjust these values. The important thing is that you use the double slashes and add the extra stuff at the end.
C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit -Command Set-Location -LiteralPath '%L'
That’s all there is to it.