How to Open Powershell in a Folder in Windows 10

PowerShell is an open-source project that is pre-installed in Windows 10. You guys can open it from the Power User menu or also search for it in Cortana. In this article, we are going to talk about How to Open Powershell in a Folder in Windows 10. Let’s begin!

Unlike Command Prompt, you can also open it anywhere through holding down the Shift key and right-tapping the folder. And then you will find the Open Command window here option from the context menu actually. But, there is no Open PowerShell window here option actually. At this time, you have to add the option to the context menu manually.

PowerShell basically comes pre-installed in Windows 10. You guys can access it from the Power User menu or you can search for it through Cortana. Both Windows 7 and Windows 8 did not have PowerShell by default actually. Although Windows 10 has PowerShell, it has not integrated it the same way because it has Command Prompt.

You can open a Command Prompt window anywhere, in any location/folder, by holding down the Shift key and right-clicking inside it. The context menu will have an ‘Open Command window here’ option but nothing similar exists for PowerShell. Here’s how you can open PowerShell in a specific location in Windows 10.

Open PowerShell in File Explorer

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

  • First, press Win plus keys in order to open your File Explorer. And then head to the folder or location that you guys want to find the open PowerShell window here option.
  • Then type PowerShell in the address bar and then tap Enter.
  • Now wait a moment and you can then open a PowerShell window at that folder.

Add “Open PowerShell Window Here” to the Context Menu

Just like that, you can also add the “Windows open PowerShell in a folder” feature to the context menu through editing the registry manually. In order to do so, you guys need to make some changes to Windows Registry. Let’s see how:

  • First, press the Win + R keys to open the Run dialog box, and then type Regedit in it and then tap Enter.

open powershell in a folder in windows

  • Navigate to the following path via the left sidebar:

HKEY_CLASSES_ROOT\Directory\shell

 

  • Right-tap the shell key and choose New > Key from the context menu. Then name the new key to the powershellmenu as well.
  • Now, double-tap the default value inside the new PowerShell key in order to open its Properties window.

open powershell in a folder in windows

  • In the Properties window, you have to change the Value data to Open PowerShell Here. And then tap on the OK button in order to save this change
  • If you want to set the same way to the Open Command Prompt here option through holding the Shift key and right-tapping the folder. There you can set the same way for the Windows open PowerShell in a folder option as well. Right-tap the powershellmenu key and select New > String Value.

Then

  • Now name the default value to Extended. And then the rest process is the same as the above, also you have to create a new key inside the powershellmenu key and then select New > Key, and name the key to command.
  • Double-tap the Default value inside the command key in order to open its properties.
  • Then type the following text into the Value data and then tap on OK.

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

open powershell in a folder in windows

  • Then close the Registry Editor. After that, these changes will then take place at one and you can select the Open with PowerShell option through holding down the Shift key and right-tapping the folder as well.

Conclusion

Alright, That was all Folks! I hope you guys like this article and also find it helpful to you. Give us your feedback on it. Also if you guys have further queries and issues related to this article. Then let us know in the comments section below. We will get back to you shortly.

Have a Great Day!

Also See: How to Listen to Microphone on Windows 10

Leave a Reply