How to Open Windows Powershell in a Folder

Photo of author

By Victor Ashiedu

Published

Windows 10 does not offer direct options to open Powershell in a folder. However, there are simple tricks to overcome this limitation.

The first two methods work on Windows 10. On the other hand, if you still use Windows 7, you can use the third method to make minor registry changes but after that, you will have “Open Powershell here” with Shift + right-click on any folder.

Method 1: Shift + Right-Click

The quickest way to open Windows PowerShell in a folder is the Shift + Right-Click method. Follow the steps below to use this method to open PowerShell:

  1. Open the folder that contains the folder you want to open PowerShell from. In this example, I want to open PowerShell from the folder called “Plugins”. This folder is within the www.itechguides.com folder.
How To Open Windows Powershell In a Folder In Windows 10: Shift + Right-Click Method
  1. Then, hold the Shift key on your keyboard and right-click the folder. When you right-click the folder while pressing the Shift key, the context menu will display Open PowerShell window here – click it.

Windows PowerShell will open in the folder…

Method 2: File Explorer “File Menu”

Windows 10 File Explorer “File Menu” offers another option to overcome this limitation. Follow the steps below to open PowerShell:

  1. Open the folder you want to Open PowerShell in. In this example, I want to open PowerShell from “Plugins”. I will open the folder.
How To Open Windows Powershell In a Folder In Windows 10: File Explorer "File Menu" Method
  1. Then, on the top left, click the File menu. When you click File, one of the options displayed will be “Open Windows PowerShell” – you can click it to open PowerShell without admin privileges. However, if you want to open PowerShell as administrator, see the next step…
How To Open Windows Powershell In a Folder In Windows 10: File Explorer "File Menu" Method
  1. To open Windows PowerShell in a folder as administrator – hover your mouse over “Open Windows PowerShell”. Then, click Open Windows PowerShell as administrator.

Method 3: Add “Open Windows Powershell here” to File Explorer Context Menu

This method is courtesy of some of the contributions on this stackoverflow.com page. The solutions are great – as you will see below. However, I have simplified it and made it easy to apply.

As I hinted in the introduction to this guide, the first two methods work on Windows 10 but not on Windows 7. However, if you still use Windows 7, use this method to add the “Open Windows Powershell here” option with Shift + right-click for any folder.

How to Add “Open Windows Powershell here” from Registry

To add this option, follow the steps below:

  1. Enter registry in the search box. The Registry Editor should be highlighted in the search result. On the right-pane, click Run as administrator.
Add "Open Windows Powershell here" To File Explorer Context Menu
  1. Then, navigate to the registry key below.
Computer\HKEY_CLASSES_ROOT\Directory\shell\Powershell

Alternatively, you can copy the path above, paste it in the Address Bar – see the arrow in the screenshot below – then, press the enter key on your keyboard.

Add "Open Windows Powershell here" To File Explorer Context Menu

When you press the Enter, you will be navigated to the PowerShell key – proceed with the next step…

Add "Open Windows Powershell here" To File Explorer Context Menu
  1. Once you get to the PowerShell registry sub-key, left-click the key. Then, on the right-pane, double-click Default.
Add "Open Windows Powershell here" To File Explorer Context Menu
  1. On the Edit String pop-up window, replace the Value data with the text below – then, click OK – see the second screenshot below:
If you receive the “Cannot Edit” error message, see the next sub-section – How To Fix “Cannot Edit” Registry Error Message.
Open Windows Powershell here
Add "Open Windows Powershell here" To File Explorer Context Menu
  1. Now if you press and hold the Shift key on your keyboard and right-click any folder, one of the displayed options will be “Open Windows Powershell here”.

How to Fix “Cannot Edit” Registry Error Message

You only need to go through the steps in this sub-section if you received the “Cannot Edit: error writing the value’s new content” error message in the last sub-section.

  1. If you receive the “Cannot Edit” error message, it means that you DO NOT have the permission to edit the PowerShell registry sub-key. Click OK.
  1. Then, right-click PowerShell and select Permissions.
  1. When the registry key’s permission window opens, click Advanced.
  1. Then, on the Advanced window, beside the current owner, click Change.
  1. On the Select User or Group window, enter administrators and click Check Names. The administrators group will be resolved – click OK.
  1. Then, back on the Advanced screen, click OK.
  1. Finally, back on the PowerShell key permissions – select Administrators, then check Full Control, Allow and click OK.

When you complete the steps in this sub-section, return to the last sub-section and complete the task that will add “Open Windows PowerShell here” when you press Shift and right-click any folder in Windows 7.

I hope you found the methods to open Windows PowerShell in a folder discussed in this guide helpful.

If you found it helpful, kindly spare a munites or two to share your views with our community using the comments form below.

However, if none of the methods worked for you or you needed something other than the discussed methods, click No to the “Was this post Helpful” question below. Then, kindly provide us additional details. We review our reader’s feedback and update our guides to constantly meet your needs.

Alternatively, simply respond to the “Was this page helpful” question below and provide us with your feedback.

Finally, for more PowerShell tech Itechguides, visit our Windows PowerShell How-To guide page. You may also find our Work from Home page very helpful.

About the Author

Photo of author

Victor Ashiedu

Victor is the founder of InfoPress Media, publishers of Ilifeguides and Itechguides. With 20+ years of experience in IT infrastructure, his expertise spans Windows, Linux, and DevOps. Explore his contributions on Itechguides.com for insightful how-to guides and product reviews.

Related Articles

Get in Touch

We're committed to writing accurate content that informs and educates. To learn more, read our Content Writing Policy, Content Review Policy, Anti-plagiarism Policy, and About Us.

However, if this content does not meet your expectations, kindly reach out to us through one of the following means:

  1. Respond to "Was this page helpful?" above
  2. Leave a comment with the "Leave a Comment" form below
  3. Email us at [email protected] or via the Contact Us page.

Leave a comment

Send this to a friend