FIRST – Configure Disk Cleanup Tool
Click Start, and then click Run
In the Open box, type cleanmgr /sageset:69
You’ll be given a list of file types to be selected for deletion:
Temporary Setup Files – OK to delete.
Downloaded Program Files – OK to delete.
Temporary Internet Files – OK to delete.
Offline Web Pages - If you are using a portable computer you may NOT want to select this option. These offline files are automatically cached so websites can be viewed after you disconnect from the network.
Debug Dump Files – OK to delete.
Microsoft Error Reporting Temporary Files – OK to delete.
Office Setup Files – Do NOT select (keeping the Office Setup Files avoids the possibility of needing the original Office CD).
Old Chkdsk Files – OK to delete.
Recycle Bin – OK to delete.
Temporary Remote Desktop Files – If you use the Remote Desktop feature you may NOT want to select this option. These files improve the effective speed of your connection to a remote computer.
Setup Log Files – OK to delete.
Temporary Files – OK to delete.
WebClient/Publisher Temporary Files – OK to delete.
Compress Old Files – Do NOT select.
Catalog Files for the Content Indexer – No need to select this because you’ve already turned off the Indexing Service anyway – right?
When you’re done making your selections click OK
SECOND – Schedule Disk Cleanup Tool
From the Control Panel select Scheduled Tasks.
Double–click Add Scheduled Task to start the Scheduled Task Wizard, then click Next.
In the list of applications select, Disk Cleanup, then click Next.
Select how often you want this to run. Weekly is fine, then click Next.
Pick a day of the week and time for the task to run – preferable when you are NOT using your computer :-)
Enter your name and password (If you don’t use a password, leave it blank), then click Next.
Check the box Open advanced properties for this task when I click Finish, then click Finish.
In the Run box, add /sagerun:69 to the end of the cleanmgr.exe command. It will now look like: C:\Windows\System32\cleanmgr.exe /sagerun:69