You might want to set it up to run weekly or monthly depending on what works best for you.
To schedule Disk Cleanup to run on a regular basis we need to schedule a task.
For this example were using Windows 7, but the steps are essentially the same in Vista as well.
hit the Start Menu and enter task scheduler into the search box and hit Enter.
The Task Scheduler opens and youll want to press Action then select Create Basic Task.
There is not right or wrong answer to how often you run it.
Its completely up to you and you might want to try out some different schedules.
In this example were going to select weekly.
Next under Action select Start a program… For this basic setting we scheduled it for a time when we know the computer will be in use.
Disk Cleanup starts its calculations…
Now the results and you might choose the files to delete.
To launch the Command Prompt bang out cmd into the search box in the Start Menu and hit Enter.
Youll notice there are a lot more options here than when you go through the GUI to cleanup files.
The /sageset:1 command creates a registry key that saves the tweaks you entered.
It tells you to hit refresh but the error keeps coming back.
It doesnt seem to negatively affect anything you schedule, but its quite annoying.
On another machine I had to turn it off then back on to fix the issue notification.