With the powerful and free disk cleaning up software such as CCleaner, hardly anyone really uses the Windows Disk Cleanup to remove temporary files anymore. You can run Disk Cleaner by clicking the Start button, Go to All Programs, Accessories, System Tools and click the Disk Cleanup shortcut. By default it is able to clean Downloaded Program Files, Temporary Internet Files, Offline Webpages, Recycle Bin, Setup Log Files, Temporary Files, Thumbnails, Per user archived Windows Error Reporting File, Per user queued Windows Error Reporting Files and System queued Windows Error Reporting Files.
There is a trick on how you can add 10 more extra items to the disk cleanup making it a total of 20 items. The extra 10 items are Temporary Setup Files, Debug Dump Files, Old Chkdsk files, Previous Windows installation(s), System error memory dump files, System error minidump files, Temporary Windows installation files, Files discarded by Windows upgrade, System archived Windows Error Reporting Files and Windows upgrade log files.
You will need to run command prompt as Administrator, and then type the following command:
%SystemRoot%\System32\Cmd.exe /c Cleanmgr /sageset:65535 & Cleanmgr /sagerun:65535
Disk Cleanup Settings will then appear with 20 items in total for you to clean up. Just select the items that you would like Disk Cleanup to automatically clean up and click the OK button. This works with Windows XP as well but it only adds 3 more extra items making it a total of 15 items.