After a fresh installation of Exchange 2007, the Exchange Management Shell may be found very sluggish. This is because of a damaged configuration setting during installation. The script below boosts the performance of the EMS startup dramatically.
To run the script, do the following:
Open Notepad, paste the following script and save the file as “speedup-ems.ps1″
Set-Alias ngen @(
dir (join-path ${env:\windir} “Microsoft.NET\Framework64″) ngen.exe -recurse |
sort -descending lastwritetime
)[0].fullName
[appdomain]::currentdomain.getassemblies() | %{ngen $_.location}
Open the Exchange Management Shell, navigate to the location where you saved the speedup-ems.ps1 and type:
.\speedup-ems.ps1
In most cases you will not have the appropriate rights to run the script, because it is unsafe.… Read the rest