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.

How to Schedule Disk Cleanup in Windows 7 & Vista

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.

31disk

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.

32disk

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.

33disk

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.

34disk

On another machine I had to turn it off then back on to fix the issue notification.

35disk

56bas

57bas

37disk

38disk

41disk

42disk

43disk

51adv

52adv

55adv

39disk

50disk