

To increase the free space on a volume, delete unneeded files or move them to another disk. If a volume has less than 15% free space, defrag will only partially defragment it. Defrag uses this space as a sorting area for file fragments. As a security best practice, consider using Run as to perform this procedure.Ī volume must have at least 15% free space for defrag to completely and adequately defragment it. If the computer is joined to a domain, members of the Domain Admins group might be able to perform this procedure. To perform this procedure, you must be a member of the Administrators group on the local computer, or you must have been delegated the appropriate authority. However, you cannot schedule to defragment a Solid State Drive (SSD) or a volume on a Virtual Hard Disk (VHD) that resides on an SSD.

With Windows Server 2008 R2, Windows Server 2008, and, Windows Vista, you can schedule to defragment a volume. You cannot defragment file system volumes that are not NTFS, FAT or FAT32. For more information about chkdsk and fsutil dirty, see Additional references.

You can determine if a volume is dirty by using the fsutil dirty query command. You must run chkdsk on a dirty volume before you can defragment it. You cannot defragment volumes that the file system has marked as dirty, which indicates possible corruption. You cannot defragment volumes that the file system has locked. You cannot defragment specific types of file system volumes or drives: Perform free space consolidation on the specified volumes. Print verbose output containing the fragmentation statistics. Print the progress of the operation on the screen. Track an operation already in progress on the specified volume. Run the operation on each volume in parallel in the background. Run the operation at normal priority (default is low). Perform the operation on all volumes except those specified. Perform analysis on the specified volumes. Specifies the drive letter or mount point path of the volume to be defragmented or analyzed. Syntax defrag | /C | /E ]ĭefrag | /C | /E /A ]ĭefrag | /C | /E /X ] Membership in the local Administrators group, or equivalent, is the minimum required to run this command.įor examples of how this command can be used, see Examples. Locates and consolidates fragmented files on local volumes to improve system performance. Applies To: Windows Vista, Windows Server 2008, Windows Server 2012, Windows 8
