Avvio lento dopo installazione Dot Net 4

Su alcune macchine può capitare che dopo l'installazione del Dot Net di Microsoft si manifesti un rallentamento dell'avvio del pc.
Per risolvere è sufficiente creare un batch che contenga queste righe:

C:
cd\
cd C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
ngen update
cd\
cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
ngen update
cd\
cd C:\Windows\Microsoft.NET\Framework\v4.0.30319\
ngen update


ed eseguirlo in modalità amministratore.

Il riavvio successivo sarà poi eseguito alla velocità normale.