TAKEN AT YOUR OWN RISK
This tweak works by creating a batch file to clear the temp and history folders everytime you shutdown so that your PC doesn't waste time checking these folders the next time it boots. It's quite simple to implement:
1. Open Notepad and create a new file with the following entries:
RD /S /q "Cocuments and Settings"UserName without quotes"Local SettingsHistory"
RD /S /q "Cocuments and SettingsDefault UserLocal SettingsHistory"
RD /S /q "D:Temp" <--"Deletes temp folder, type in the location of your temp folder"
2. Save the new as anything you like but it has to be a '.bat' file e.g. fastboot.bat or deltemp.bat
3. Click 'Start' then 'Run'
4. Type in 'gpedit.msc' and hit 'ok'
5. Click on 'Computer Configuration' then 'Windows Settings'
6. Double-click on 'Scripts' and then on 'Shutdown'
7. Click 'Add' and find the batch file that you created and then press 'Ok'