Faster PowerShell Startup

If you’re a SharePoint developer or admin, you need to learn PowerShell (Neil Iversen had a good intro at DevConn). If you do use PowerShell, you might want to follow the PowerShell Team Blog. If you don’t, you probably missed this post with a script to make PowerShell start faster. Seriously, do it now before you forget (Run as Administrator in Vista/2008):

set-alias ngen @(
  dir -recurse (join-path ${env:\windir} "Microsoft.NET\Framework\") ngen.exe |
    ?{$_.length -gt 0} | sort -descending lastwritetime
)[0].fullname
[appdomain]::currentdomain.getassemblies() | %{ngen $_.location}
About these ads

One Response to “Faster PowerShell Startup”


Comments are closed.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: