How to Windows

How to Open Powershell in a Folder in Windows

open powershell in a folder
Written by Kelly Houstan

PowerShell basically comes pre-installed in Windows 10. You can also access it from the Power User menu or you can search for it through Cortana. Both Windows 7 and 8 did not have PowerShell by default as well. Although Windows 10 also has PowerShell, it has not integrated it the same way just like it has Command Prompt. You can also open a Command Prompt window anywhere, in any location/folder. Through holding down the Shift key and right-clicking inside it. Just read this article to know all about How to Open Powershell in a Folder in Windows. Let’s start!

The context menu will also have an ‘Open Command window here’ option, however, nothing similar exists for PowerShell as well. Here’s how you guys can open PowerShell in a particular location in Windows 10.

How to Open Powershell in a Folder in Windows

File Explorer

This is the simplest way in order to open PowerShell in a specific location and it needs you to make absolutely no changes to anything. Now open File Explorer and navigate to the folder or location you want in order to open PowerShell in.

  • In the address bar, type ‘PowerShell and tap Enter.
  • Now give it a second and a PowerShell window will also open at that location. You can also do the same for Command Prompt. Just simply type CMD in the address bar and click on Enter.

Right-tap on Context Menu

In order to add the ‘Open PowerShell window here’ option to the right-click context menu, you guys have to run a PowerShell script. It’s not really difficult but if you’re looking for something simple then we recommend our first solution.

The script that you need to run is called StartPSFromWinExplorer and you can also download it from the link below. In order to run it, log in to your system along with the Administrator account. Just open PowerShell as the administrator. And now run the script;


You need only give PowerShell the path to the script and then click on enter to run it. Such as, the command I ran was;

  • Permit PowerShell in order to run the script.
  • Once it has successfully run, then right-tap on a folder thumbnail and you will see the ‘Open PowerShell in this Folder’ option in the context menu. I updated mine to say ‘Open PowerShell Here’ through the Registry. If you guys would like to do the same, read on.
  • Now open the Windows Registry and go to
HKEY_CLASSES_ROOT> Directory>shell>powershell_shell>command
  • Double tap on the default key in this folder and replace the value along with ‘Open PowerShell Here’.

via the File Menu

Another handy way in order to open PowerShell in File Explorer is to use the file menu. Using the file menu, you guys could use the mouse or keyboard shortcut as well. Pressing ALT allows you in order to open the file menu. Within File Explorer:

  • First, tap and hold the ALT key.
  • Then press the F key. This will basically open the file menu.
  • Now click on the S key. This option will choose Open Windows PowerShell and will expand another sub-menu.
  • Lastly, tap on the R key. PowerShell will actually open in the current directory.

If you guys want to open PowerShell as an administrator, then use hit A instead of R actually.


Well, That all from my side. If you want to know more about this article or have any queries. Then feel free to ask me anything in the comments section below.

Have a Good Day!

Also See: Too Many Login Failures From Your Network on Steam

About the author

Kelly Houstan

Leave a Comment