How do I start PowerShell from Windows Explorer?

0 votes
asked Oct 8, 2008 by josh-kodroff

Is there a way to start PowerShell in a specific folder from Windows Explorer, e.g. to right-click in a folder and have an option like "Open PowerShell in this Folder"?

It's really annoying to have to change directories to my project folder the first time I run MSBuild every day.

16 Answers

0 votes
answered Jan 8, 2008 by steven-murawski

Try the PowerShell PowerToy... It adds a context menu item for Open PowerShell Here.

Or you could create a shortcut that opens PowerShell with the Start In folder being your Projects folder.

0 votes
answered Oct 8, 2008 by chris-sutton

Scott Hanselman has a really simple inf that will do this for you. If you want to tweak the script it is really easy to go and edit the inf for customizations.

0 votes
answered Oct 8, 2008 by gulzar-nazim

You can download the inf file from here - Introducing PowerShell Prompt Here

0 votes
answered Oct 8, 2008 by ebgreen

Just to add in the reverse as a trick, at a PowerShell prompt you can do:

ii .


start .

to open a Windows Explorer window in your current directory.

0 votes
answered Jan 5, 2009 by josh-kodroff

There's a Windows Explorer extension made by the dude who makes tools for SVN that will at least open a command prompt window.

I haven't tried it yet, so I don't know if it'll do PowerShell, but I wanted to share the love with my Stack Overflow brethren:

0 votes
answered Oct 6, 2011 by ashwin-nanjappa

In Windows Explorer, just go to the Address Bar at the top (keyboard shortcuts: Alt+D or Ctrl+L) and type powershell or powershell_ise and press Enter. A PowerShell command window opens with the current directory.

0 votes
answered Jan 10, 2012 by mark-larson

Another option are the excellent Elevation PowerToys by Michael Murgolo on TechNet at

They include PowerShell Prompt Here and PowerShell Prompt Here as Administrator.

0 votes
answered Jan 24, 2013 by walter-mitty

One fairly simple alternative is to invoke PowerShell via a shortcut. There is a shortcut property labeled "Start in" that says what directory(folder) to use when the shortcut is invoked.

If the Start In box is blank, it means use the current directory.

When you first create a shortcut to PowerShell in the usual way, the start in box specifies the home directory. If you blank out the start in box, you now have a shortcut to powershell that opens PS in the current directory, whatever that is.

If you now copy this shortcut to the target directory, and use explorer to invoke it, you'll start a PS that's pointed at the target directory.

There's already an accepted answer to this question, but I offer this as another way.

0 votes
answered Oct 25, 2013 by vivek-maharajh

If you're on Windows 8, or later, you can simply use the built-in File → "Open Windows PowerShell".

Or Alt + F followed by R.

0 votes
answered Oct 27, 2013 by warren-rumak

It's even easier in Windows 8.1 and Server 2012 R2.

Do this once: Right-click on the task bar, choose Properties. In the Navigation tab, turn on [✓] Replace Command Prompt with Windows PowerShell in the menu when I right-click the lower-left corner or press Windows key+X.

Then whenever you want a PowerShell prompt, hit Win+X, I. (Or Win+X, A for an Admin PowerShell prompt)

Welcome to Q&A, where you can ask questions and receive answers from other members of the community.
Website Online Counter