Scott Hanselman

Introducing PowerShell Prompt Here

May 5, '06 Comments [3] Posted in PowerShell
Sponsored By

PowershellhereIt was only a matter of time, right?

Due to my recent infatuation passionate love affair with PowerShell (whose download has been up and down on MSDN today...not sure why) I realized that I was missing something - the same behavior that I'd gotten hooked on with Visual Studio's Command Prompt/Batch File and "Visual Studio 2003/5 Command Prompt Here.

I really think it's intuitive to right-click on a folder and say "Command Prompt Here" so here's "PowerShell Prompt Here."

Download the INF, right click and select "Install." It appears in Add/Remove programs but for some reason doesn't completely uninstall. If you want to uninstall completely, search the registry for "PowerShellHere" (oneword) and delete the two trees you find.

Enjoy. Note, if you've installed your PowerShell to another folder other than the default, you'll need to edit the file manually with your path.

Disclaimer, Your Mileage May Vary (YMMV), Good Luck, Don't Player Hate, Integrate. If you've got improvements to the INF, post them in the comments and I'll update the file.

File Attachment: powershellhere.inf (1 KB)

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. I am a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web
Friday, May 05, 2006 10:26:24 PM UTC
Back in the Monad beta, I was actually disappointed to see they wouldn't have this built in.
Matt
Saturday, May 06, 2006 1:31:20 PM UTC
I am not sure how INF files work at all.
But when i looked at it, in "PowerShellHere.Reg" section,
executable path to PowerShell.exe was hardcoded (C:\program files\windows powershell\v1.0\powershell.exe).

But shouldn't there be a note on the blog that says, one has to modify the INF file and change the PowerShell.exe directory for those who have installed PowerShell on a different directory?

Ah, sorry to mention this late in the comment that I love the shell integration :)
Wednesday, May 10, 2006 11:31:57 PM UTC
It was down as they discovered a couple of problems with the previous version of powershell and reposted a new version. You should have got an email about it if you registered with a valid email address when you downloaded it.
Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.