• Linkedin
  • Reddit

Summary :

Windows open PowerShell in a folder

A great many people are unclear about the windows open PowerShell in a folder. If you are trying to find the way to open PowerShell in a folder, you come to the right place. In this post of MiniTool, you will get detailed steps to do that.

Quick Navigation :

As you might know, PowerShell is an open-source project that’s pre-installed in Windows 10. You can open it from the Power User menu or search for it in Cortana.

Unlike Command Prompt, you can open it anywhere by holding down the Shift key and right-clicking the folder, and then you will find the Open Command window here option from the context menu. However, there is no Open PowerShell window here option. At this time, you need to add the option to the context menu manually.

 open PowerShell window

Now, let’s see how to open PowerShell in a folder.

powershell script thumbnail
How to Run PowerShell Script on Windows 10? [Full Guide]

How to create a PowerShell script file? How to run PowerShell script on Windows 10? Today’s article will tell you all the answers, please keep reading.

Read More

Method 1. Open PowerShell Window Here in File Explorer

The first and simplest method for Windows open PowerShell in a folder is to utilize the File Explorer. Don’t worry. This operation will make no changes to anything. Here’s how to open PowerShell here.

Step 1. Press Win plus E keys to open your File Explorer, and then go to the folder or location that you want to find the open PowerShell window here option.

Step 2. Type PowerShell in the address bar and hit Enter.

Step 3. Wait a moment and you can open a PowerShell window at that folder.

type PowerShell in the address bar

Method 2. Add “Open PowerShell Window Here” to the Context Menu

Alternatively, you can add the “Windows open PowerShell in a folder” feature to the context menu by editing the registry manually. To do so, you need to make some changes to Windows Registry. Here’s how:

Warning: Registry Editor is a built-in Windows tool. Misusing it can lead to your system unstable or even unbootable. So, it’s highly recommended that you back up your system in advance and follow the instruction carefully.

Step 1. Press Win + R keys to open the Run dialog box, and then type regedit in it and hit Enter.

type regedit in the Run box

Step 2. Navigate to the following path through the left sidebar:

HKEY_CLASSES_ROOT\Directory\shell

Step 3. Right-click the shell key and choose New > Key from the context menu. Then name the new key to the powershellmenu.

create a new key inside the shell folder

Step 4. Now, double click the default value inside the new PowerShell key to open its Properties window.

double click the default value

Step 5. In the Properties window, change the Value data to Open PowerShell Here, and then click on the OK button to save this change

change the value data to Open PowerShell Here

Step 6. To set the same way to the Open Command Prompt here option by holding the Shift key and right-clicking the folder. Here you can set the same way for the Windows open PowerShell in a folder option. Right-click the powershellmenu key and choose New > String Value.

set a new string value

Step 7. Name the default value to Extended. And then the rest process is the same as the above, you need to create a new key inside the powershellmenu key and choose New > Key, and name the key to command.

create a new key named command

Step 8. Double click the Default value inside the command key to open its properties.

Step 9. Then type the following text into the Value data and click on OK.

C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit -Command Set-Location -LiteralPath '%L'

type the certain text in Value data

Step 10. Close the Registry Editor. After that, these changes will take place at one and you can choose the Open with PowerShell option by holding down Shift key and right-clicking the folder.

  • Linkedin
  • Reddit