|

How To Use The Fsutil Command In Windows (2026)

Fsutil is a built-in Windows command that reads and changes file system settings from the command line.

You open it in an administrator Command Prompt and type fsutil followed by a subcommand.

This guide covers the subcommands most people need, with the exact syntax from Microsoft Learn.

Table of Contents

Quick answer

TaskCommand
List every drivefsutil fsinfo drives
Check whether a drive is flagged dirtyfsutil dirty query c:
Check whether TRIM is onfsutil behavior query DisableDeleteNotify
Create a test file of a set sizefsutil file createnew C:\temp\test.bin 1048576
Show free space on a volumefsutil volume diskfree c:

What fsutil does

Microsoft says fsutil performs tasks related to FAT and NTFS file systems, such as managing reparse points, sparse files, and disk quotas.

The page applies to Windows 11 and Windows 10 as well as current Windows Server releases.

Microsoft also warns that only advanced users with a thorough understanding of Windows should use it.

How to open it

  1. Select Start and type cmd.
  2. Right-click Command Prompt and choose Run as administrator.
  3. Select Yes on the User Account Control prompt.
  4. Type fsutil and press Enter to see the list of subcommands.

You must be signed in as an administrator or a member of the Administrators group, or the command will refuse to run.

Our guide to opening an elevated Command Prompt shows more ways to do it.

Fsutil subcommands at a glance

Microsoft lists 18 subcommands, and these are the ones you are most likely to use.

SubcommandWhat it does
8dot3nameQueries or changes short (8.3) file name behavior
behaviorQueries or sets NTFS volume behavior
dirtyQueries or sets a volume dirty bit
fileCreates files, finds file IDs, sets zero data
fsinfoLists drives and volume details
hardlinkLists or creates NTFS hard links
repairQueries or sets self-healing state of the volume
sparseManages sparse files
usnManages the update sequence number change journal
volumeDismounts a volume or queries free space

List drives and read volume details

Type fsutil fsinfo drives to list every drive, and Microsoft shows output similar to Drives: A:\ C:\ D:\.

Use fsutil fsinfo drivetype c: to see whether a drive is fixed, removable, a network drive, a CD-ROM drive, or a RAM disk.

Use fsutil fsinfo volumeinfo e: to see the file system name, serial number, and whether the volume supports features such as named streams.

Use fsutil fsinfo ntfsinfo f: for NTFS-specific details such as total clusters and the end of the MFT zone.

Use fsutil fsinfo sectorinfo d: to see the logical and physical sector size and whether TRIM is supported.

Check the dirty bit

A dirty bit means the file system may be in an inconsistent state, for example after a shutdown before changes were written.

Run fsutil dirty query c: and Windows answers either that the volume is dirty or that it is not dirty.

If the bit is set when the computer restarts, chkdsk runs to check the file system and try to fix problems.

Microsoft also documents fsutil dirty set, but you only need the query form to check a drive.

Check and change TRIM

Run fsutil behavior query DisableDeleteNotify to see whether delete notifications (TRIM) are on.

Microsoft shows sample output of NTFS DisableDeleteNotify = 1 next to ReFS DisableDeleteNotify is not currently set.

CommandEffect
fsutil behavior set disabledeletenotify 1Turns delete notifications off for NTFS and ReFS v1
fsutil behavior set disabledeletenotify 0Turns them on
fsutil behavior set disabledeletenotify ReFS 0Overrides the default for ReFS v2

Microsoft says enabling or disabling this setting does not require a restart.

Other behavior settings

Most fsutil behavior set options take 1 to disable and 0 to enable.

Microsoft says options such as disablelastaccess, mftzone, memoryusage, and quotanotify require a restart, except for disabledeletenotify.

The disablelastaccess option stops updates to the Last Access Time stamp, which Microsoft says can improve file and directory access speed.

Microsoft warns that disabling it can affect programs such as Backup and Remote Storage that rely on that stamp.

For several options, including compression limits and file metadata optimization, Microsoft says it does not recommend disabling them.

Create and inspect files

Use fsutil file createnew C:\temp\test.bin 1048576 to make a file of the length you give, filled with zeroes.

Use fsutil file queryfileid C:\temp\test.bin to see the file ID of a file on an NTFS volume.

Use fsutil file queryextents C:\Temp\sample.txt to see where a file sits on the disk.

Use fsutil hardlink list filename to list every hard link to a file.

Microsoft notes that a file is deleted only after all of its hard links are deleted.

Check free space on a volume

Run fsutil volume diskfree c: to ask the drive how much free space it has.

Run fsutil volume list to list all volumes on the system.

Run fsutil volume allocationreport C: to see how storage is used on the drive.

For freeing space, our guide to freeing up disk space is the better place to start.

Commands to avoid unless you know why

Be careful: fsutil volume dismount dismounts a volume, and fsutil file setzerodata sets a range of a file to zeroes, which empties it.

Microsoft says setvaliddata is only for administrators and is needed only in advanced multimedia and storage network scenarios.

If you only want to check a drive or a setting, stick with query commands, which read information without changing it.

Common problems

ProblemWhat to check
Access is denied or the command is blockedReopen Command Prompt with Run as administrator
A behavior change has no effectRestart the PC, since most behavior options need it
The subcommand is not recognizedRun fsutil alone to list the supported subcommands
The result looks wrong for a driveInclude the colon, for example c:

Fsutil pairs well with our Defrag command guide when you are checking drive health.

You can read the full reference on the Microsoft Learn fsutil page.

The fsutil behavior page lists every behavior option and its registry key.

Leave a Reply

Your email address will not be published. Required fields are marked *