Posted by: n3ilb | August 4, 2008

Exchange 2007 performance tip #2

Hi,

This may be a stretch to say this is an Exchange performance tip but it will speed up loading the Exchange Management Shell (EMS) so I’m going to post it anyway! :p. I’ve seen quite a few blog posts relating to this subject, too many to reference them all, but this one sums it up nicely (http://msexchangeteam.com/archive/2008/08/01/449426.aspx).

For me I just pasted this…

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

… into notepad,
saved it as c:\temp\speedup.ps1,
loaded Windows PowerShell (Start à All Programs à Windows PowerShell 1.0 àWindows PowerShell),
cd \,
cd temp,
.\ speedup.ps1 <enter>

Script will run through in a few seconds and that’s it! J

Make note of what the link above says about the 32bit version of the .NetFramework!

N3ilb


Responses

  1. Hi,

    i’m interested in attending an exchange user group and google brought me to this blog. however, i don’t find anything about dates and times. Have you any idea how to get in touch with them? thx in advance

  2. Dave,

    Whereabouts are you based? I’m in the UK, this site might be able to help you out. http://www.mmmug.co.uk/

    Neil


Leave a response

Your response:

Categories