- MAXIMUMpcguides – Windows Vista tips, tricks, help, and how-to guides - http://maximumpcguides.com/windows-vista -
Automate Windows Vista’s Disk Cleanup
Posted By Brent Trahan On July 18, 2007 @ 11:05 am In All, Maintenance, Vista, Windows | 4 Comments
An important part of maintaining your Windows Vista computer is routinely running a Disk Cleanup to remove the trash left behind by Windows and software on your hard drive.
Most people don’t think of or want to do things like running Disk Cleanup. This guide shows you how to setup Disk Cleanup to automatically clean your hard drive every week by using a scheduled task.
Set What to Clean Using Sageset
Before you can set disk cleanup to automatically clean your computer periodically you need to tell it what to clean when it performs a disk cleanup. Here’s how to setup disk cleanup to clean your computer based on saved settings.
Using the /sageset:1 switch saves the settings you set in the registry as :1. Disk Cleanup will use these settings when it runs from a scheduled task.
Setup A Disk Cleanup Scheduled Task
Now that we’ve saved settings that tell disk cleanup what to clean we can create a scheduled task that automates disk cleanup.
Note: If you don’t receive a UAC prompt when you open Task Scheduler close the Task Scheduler and open it again by right-clicking Task Scheduler and selecting Run as administrator. You also need to pay attention to part B of step 5.
Test the new scheduled task you just created by right-clicking it in the Task Scheduler window and selecting Run.
Article printed from MAXIMUMpcguides – Windows Vista tips, tricks, help, and how-to guides: http://maximumpcguides.com/windows-vista
URL to article: http://maximumpcguides.com/windows-vista/automate-windows-vista%e2%80%99s-disk-cleanup/
URLs in this post:
[1] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/07/automate-disk-cleanup1.PNG
[2] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/07/automate-disk-cleanup2.PNG
[3] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/07/automate-disk-cleanup3.PNG
[4] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/07/automate-disk-cleanup4.PNG
[5] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/07/automate-disk-cleanup5.PNG
[6] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/07/automate-disk-cleanup6.PNG
[7] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/07/automate-disk-cleanup7.PNG
[8] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/07/automate-disk-cleanup8.PNG
[9] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/07/automate-disk-cleanup9.PNG
Click here to print.
Copyright © 2008 MAXIMUMpcguides Windows Vista. All rights reserved.