You need to install Windows Performance Toolkit by downloading the Windows 7 SDK. (Source).
Then run the commands under Administrative Permission (Source):
Note: This trick is for Harddisk System Drives only.xbootmgr -trace boot -prepSystem -verboseReadyBoot
It will reboot up to 6 times and after that you should be left with a Windows 7 Installation with Optimized Disk Layout.
The best way to do this is to do it before you sleep
- Remove your Login Password for the night
- Set UAC to elevate without prompting
- By morning everything should be done
- Set Password and UAC back to the levels you are happy with
Thanks to the respective authors from MSFN.org for sharing, there are also many other interesting tweaks to check out on the sites.