From the Archives

How to Run Disk Defragmenter as a Scheduled Task

Originally published October 20, 2009 · preserved 2026
A note from Jason: An archive piece from the original golod.com, lightly refreshed and preserved for anyone who linked to it over the years. — JG

Original screenshots/photos from this post aren't shown in the archive.

Command Line Kung Fu

I was trying to figure out how to run Disk Defragmenter from the command line on a SBS2003 box as I was not sure how to specify what drive I want defrag.exe to run on at a specific time. Turns out that you can just browse to defrag.exe (.../system32) and then tell it what drive to run on in the advanced properties of the Task Scheduler. Microsoft has a write-up on the whole process.
Get in touch →