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:

HKEY_CLASSES_ROOT\Directory

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.

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

Dixin's Blog

Memory Dump

Memory Dump

danlimerick

Daniel Lee's thoughts about programming.

DigiNinja

Memory Dump

The WordPress.com Blog

The latest news on WordPress.com and the WordPress community.

Battikh.com

Secure the Watermelon

HighOn.Coffee

Memory Dump

Random Sparks

Memory Dump

Nunix.Tech

Geeky hobbyist site on WSL & Docker

Decoder's Blog

IT Security Tips and Tricks

%d bloggers like this: