Schedule Defrag and Disk Cleanup on windows 2003
We dont very often do much server maintenance, especially on our centralised dev and file server boxes. Mostly we don't have time, as a small team that goes through mountains of work its not a priority.
Today I had 5 minutes (!) to actually see if there was a way to automate Disk Clean up and Disk Defragmenter in Windows XP / 2003. Lo and behold:
Disk Cleanup
Cleanmgr.exe can be scheduled to run. To do this, first open a command prompt (Start > Run > cmd > enter) and use the following command format:Now you can schedule the disk cleanup task you just created by running the following command from the command line or Task Scheduler:
Defragment the Volume
You can use Defrag.exe to schedule defragmentation on a volume. The bonus here is that you dont have to be awake at 2am when your server is at its quietest to set off the defrag.Following this syntax:
Now you can put this into the command line of a Scheduled task and set it up to run once a day/week/month at some ungodly hour so you dont have to set your alarm. Marvellous!
Read more here: Scheduling maintenance tasks in Windows 2003


There are no comments for this entry.
[Add Comment]