Speeding Up PowerShell Startup

PowerShell Team

I talked about this before but a number of people have missed it so here it is under a better title. 

In V1, we had a problem which caused our assemblies to not get ngen’ed during installation.  If you don’t know what “ngen” is, don’t worry – you don’t need to.  All you need to know is that we didn’t do the step that makes things go fast on your machine.  The instructions for how to fix this are HERE.

You should stop what you are doing and go run that script.  If you’ve already done this in the past, it will be harmless but if you haven’t, you’ll be amazed at the improvement in startup times.  Please tell all your friends to do this as well.   A lot of people don’t know about it and have a bad opinion about PowerShell startup times.  After people run it, the typical reaction is, “WOW!”.

 Cheers!

Jeffrey Snover [MSFT]
Windows Management Partner Architect
Visit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShell
Visit the Windows PowerShell ScriptCenter at:  http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx

0 comments

Discussion is closed.

Feedback usabilla icon