With Windows 7 / Vista many standard applications such as Windows Firewall got a face lift, the Disk Defragmenter interface changed to a dialog box with an added task scheduler support to schedule defragmentation of your hard drive. Since now it works on scheduled time, it automatically starts defragmenting as soon as the scheduled time is missed, which can cause disk thrashing and computer to slow down. Instead of letting Windows 7 / Vista to decide when to start defragmentation you should decide when and how it should run.
The new Disk Defragmenter interface looks like this:
It offers only three options in Modify Schedule which are how often, what day and what time, that doesn’t give us more control over when and how it should be performed.
To fine tune disk defragmentation schedule open Task Scheduler, click Start and type Task Scheduler in the Search bar.
In Task manager application, navigate to the following:
Task Scheduler Library > Microsoft > Windows > Defrag
How To Optimize
To start optimizing the schedule, double click on ScheduledDefrag, now click on the Triggers tab and double click on the Weekly trigger, which will open the Edit Trigger dialog box and allow you to edit the schedule.
Here you can change either to run defrag or to disable it completely. You can also control how it runs by using the Advanced settings, to start automatic disk defragmentation other than on scheduled time, click on the Begin the task drop down and make selection that best fits when you want to start defragmentation.
After you have made your changes on the Trigger tab, click OK.
How To Stop Unexpected Defragmentation
To stop disk thrashing at unexpected times, click on the Conditions tab.
From here you can control how to auto defrag at idle time (idle time denotes the time when there is no activity on the Computer). You can see the default three minutes of idle time is a little quick and will start defragmenting the drives when you are least expecting it. This is one of the reasons why you see disk activity at odd times.
How To Control Defragmentation Behavior
To control the behavior when the scheduled time is missed, click on the Settings tab.
This tab lets you decide when to run the task if the scheduled time was missed, if it failed to start, and when to stop it after a long period of time. After you have made your changes on the Settings tab, click OK.