text
stringlengths
0
4.23k
fsutil volume [diskfree] <volumepath>
fsutil volume [dismount] <volumepath>
fsutil volume [filelayout] <volumepath> <fileID>
fsutil volume [list]
fsutil volume [querycluster] <volumepath> <cluster> [<cluster>] … …
Parameters
Parameter
Description
allocationreport
Displays information about how storage is used on a given volume.
<volumepath>
Specifies the drive letter (followed by a colon).
diskfree
Queries the hard disk drive to determine the amount of free space on it.
dismount
Dismounts a volume.
filelayout
Displays NTFS metadata for the given file.
<fileID>
Specifies the file id.
list
Lists all of the volumes on the system.
querycluster
Finds which file is using a specified cluster. You can specify multiple clusters with the querycluster parameter.
<cluster>
Specifies the logical cluster number (LCN).
<volumepath>
<fileID>
<cluster>
Examples
To display an allocated clusters report, type:
fsutil volume allocationreport C:
To dismount a volume on drive C, type:
fsutil volume dismount c:
To query the amount of free space of a volume on drive C, type:
fsutil volume diskfree c:
To display all the information about a specified file(s), type:
fsutil volume C: *
fsutil volume C:\Windows
fsutil volume C: 0x00040000000001bf
To list the volumes on disk, type:
fsutil volume list
To find the file(s) that are using the clusters, specified by the logical cluster numbers 50 and 0x2000, on drive C, type:
fsutil volume querycluster C: 50 0x2000
fsutil wim
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows 10
Provides functions to discover and manage Windows Image (WIM)-backed files.
Syntax
fsutil wim [enumfiles] <drive name> <data source>
fsutil wim [enumwims] <drive name>
fsutil wim [queryfile] <filename>
fsutil wim [removewim] <drive name> <data source>
Parameters
Parameter
Description
enumfiles
Enumerates WIM backed files.
<drive name>
Specifies the drive name.
<data source>
Specifies the data source.
enumwims