Speed up PowerShell Startup

I caught this little gem (Update-Gac.ps1) on the PowerShell Team blog while I was catching up on posts. This script will Ngen the PowerShell assemblies for a quicker start up. Ngen is a .NET utility that will create a native images that are stored in a cache which can be then used by the framework alleviating some of the JIT-ing at startup. I ran this script and noticed a big difference in the start up times. I will run this on all my machines.

Leave a Reply