Home » All » Maintenance » Vista » Windows | All Categories

Published on 06.26.07 by Brent Trahan

Using Windows Vista Disk Defragmenter

Learn all about the Windows Vista Disk Defragmenter and how to use advanced options.

Your computer is only as fast as its slowest link. The slowest link on a computer is its hard drive. When Windows saves files it can get sloppy and split files up into pieces across the hard drive fragmenting them. When Windows accesses those fragmented files your hard drive it has to work extra hard to pick up all the fragmented parts of the files across the entire disk which slows your computer down.

The disk defragmenter takes fragmented files and puts them back together so that the hard drive doesn’t have to work as hard to get them.

By default Windows Vista’s Disk Defragmenter automatically defragments your hard drive(s) on a schedule for you. A normal computer user should never have to deal with the disk defragmenter in Windows Vista. Power users might find the command line defragmenter and its switches useful though.

Note: I don’t suggest buying a third party disk defragmenter. The reason is the disk defragmenter included with Windows Vista takes many things into consideration when defragmenting your hard drives like file shadowing, backups, and many more. It might takes longer to defragment your hard drive using the included version, but it helps your computers overall speed in the long run.

Modify Disk Defragmenters Schedule

  1. Open the Disk Defragmenter by typing defrag in the search box in the Start Menu and click Disk Defragmenter in the search results.
  2. If you don’t want Disk Defragmenter to run automatically (not advised) uncheck Run on a schedule.


  3. To modify the schedule click Modify schedule.
  4. Change how often, what day, and at what time you want disk defragmenter to run at.


You can also defragment your hard drive(s) at any time by clicking Defragment now.

Command Line Disk Defragmenter

The command line version of Disk Defragmenter uses the exact engine as the GUI (regular) version but you have finer control of the defragmenter.

To use the command line version of Disk Defragmenter type defrag c: in the command prompt (with c: being the drive you want to defragment).


The command line version of Disk Defragmenter becomes much more powerful and flexible when you add switches to the defrag command. Below are switches that can be used when running the defrag command.

-c Defragments all drives.

-a Analyses the drives and gives you a report. It doesn’t defragment the drives.

-r Only defragments files that are smaller than 64MB in size. This is the default setting of the Disk Defragmenter. Microsoft research shows that there’s no performance gain when defragmenting files larger than 64MB in size.

-w Defragments all files regardless of size.

-f Forces Disk Defragmenter to defragment drives with less than 15% of hard drive space left.

-v Display a complete (verbose) report.


defrag –c –w –f –v Defragments all hard drives and all files regardless of file size even if there is less than 15% of hard drive space left and gives a detailed report after.

defrag c: -w Defragments all files regardless of file size on the C: drive.

Still need help? Ask your computer question now.

Related Guides:

5 Responses to “Using Windows Vista Disk Defragmenter”

Subscribe to this guide's comments RSS feed.

  1. tryst says:

    Its very true that the HDD is the weakest link in your system and the main culprit in fragmentation.Its an ailment that can develop into a disease if its not treated in the early stages, best to be regular in tackling it.Inspite of fast HDDs, the average size of a video and music file too has gone up and we do so much downloading and deleting, it would kill performance if all this were done on a fragmenetd drive.

  2. Jake says:

    I like having a visual display to keep an eye on things to let me know defrag is still working or making progress and not stuck. Is there a way to turn one on?

  3. OC says:

    If I run Disk Defragmenter it takes several hours to run it. Sometimes upt o 24 hours and at the end it generats a messages indicating that Disk Degragememter is not required at this time. The opeating system is vista. I never had this problem before. Isa any way to overcame this problem and have Disk Degramnewter run?

  4. steefar says:

    i agree with jake much prefered the older windows defrag, the one in vista doesn’t even have so much as a progress indication.

  5. Dallen says:

    is there a function to make it only consolidate the free space, like on previous editions?

Leave a Reply

Subscribe to this guide's comments RSS feed.

Microsoft Windows is a registered trademark of Microsoft Corporation. Microsoft Corporation in no way endorses or is affiliated with MAXIMUMpcguides.com. All other products mentioned are registered trademarks of their respective companies. MAXIMUMpcguides IS NOT RESPONSIBLE for any damage or data loss to your computer from using this web site. All information on MAXIMUMpcguides is provided on an AS IS basis with NO WARRANTIES.

Copyright 2006-2016 Brent Trahan. All rights reserved.