You can schedule the disk deframenter utility to automatically defragrment your hard drives, by creating a scheduled task.
- Open Control Panel, double-click Scheduled Tasks
- Double-click Add Scheduled Task
- On the Scheduled Task Wizard dialog, click Next.
- Click Browse and navigate to windows’system32 folder. Select defrag.exe and click Open.
- In the Scheduled Task Wizard dialog, type a name for the scheduled task (for example type Disk Defrag).
- Under Perform this task, select how often you wish Disk Defragmenter to run. Click Next.
- Set the time at which you wish the Disk Defragmenter scheduled task to run. This should be a time when your computer is turned on but not under heavy use (i.e. at night time).
- Enter a user name under which the Disk Defragmenter scheduled task will run. This user must be an administrator on the local machine (see note above). Enter the password for that user and confirm it. Click Next.
- Check Open advanced properties for this task when I click Finish, and click Finish.
- In the Run text box, you can see the full path and command for defrag.exe.
Add the drive letter for the drive you wish to defragment to the command in the Run text box. If you want to defragment drive C:, your Run command should look like this:
C:\WINDOWS\system32\defrag.exe
Click OK
- In the Set Account Information dialog, enter and confirm the password for the user listed in Run as and click OK.
- Task Scheduler will automatically run Disk Defragmenter with the settings you selected at the time you selected.
Only one instance of Disk Defragmenter can be running at any given time. If you have multiple partitions you’ll need to add a separate scheduled task for each one, and make sure you give each task a different starting time, allowing for the previous one to finish.
Related posts:
- Windows – No Disk The other day a client calls up and says she...
- Powershell built-in GUI Editor!! Many of you have probably been on the look for...
Related posts brought to you by Yet Another Related Posts Plugin.
A better option is to use a fully automatic defragmenter like Diskeeper 2009 that is install-and-forget. It automatically defrags all the drives in the background, as required, and there is no need to schedule defrags or waste time defragging manually.
@Dan
Good point, however some people like to use scheduled tasks a lot and not have to install a 3rd party program to do it.
Also this is not an issue with Windows Vista and Windows 7, because they both defragment all your hard drives automatically by default!!!
Yet another reason to upgrade to Windows 7!