How to Add “Open PowerShell here” to the Context Menu in Windows

How to Add “Open PowerShell here” to the Context Menu in Windows

How to Add “Open PowerShell here” to the Context Menu in Windows

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.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

DEV Community

Memory Dump

SharePoint Maven


Memory Dump


Memory Dump

Black Viper |

Have You Tweaked Your OS Lately?

Dixin's Blog

Memory Dump

Memory Dump


Daniel Lee's thoughts about programming.


Memory Dump

The Blog

The latest news on and the WordPress community.

Secure the Watermelon


Memory Dump

Random Sparks

Memory Dump


Geeky hobbyist site on WSL & Docker

Decoder's Blog

IT Security Tips and Tricks

%d bloggers like this: