Overhauling the PowerShell startup process

An interesting post was blogged in the PowerShell Team Blog (https://blogs.msdn.com) and they explained that running the script below you can increase the speed to open your PowerShell Console, as follows:

Set-Alias ngen @(
dir (join-path ${env:\windir} “Microsoft.NET\Framework”) ngen.exe -recurse |
sort -descending lastwritetime
[appdomain]::currentdomain.getassemblies() | %{ngen $_.location}

Read more at source: http://blogs.msdn.com/powershell/default.aspx

About The Author

Leave a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Scroll to Top