System command

refsutil command

Manage and diagnose Resilient File System (ReFS) volumes through subcommands such as salvage, triage, compression and dedup. Availability and effects vary by Windows version and operation.

Availability: Microsoft Learn command reference spanning Windows client and Windows Server releases; some entries are legacy, role-specific, optional-feature or interactive subcommands.中文

Documented syntax

refsutil <command> [<arguments>]

The linked Microsoft Learn article is the upstream authority. Availability may depend on Windows release, role, optional feature or interactive tool context.

Examples

Run the documented diagnostic phase against E: and store working data under C:\Temp; this is not a repair command.

refsutil salvage -D E: C:\Temp

Parameters, options and clauses

refsutil options and parameter descriptions
Option / clauseDescription
<command>Select a documented ReFS operation such as compression, dedup, fixboot, iometrics, leak, salvage, streamsnapshot or triage.
<arguments>Arguments depend on the selected subcommand; follow that subcommand's syntax and verify the target volume.
compression <drive> [options]Query or configure ReFS compression settings; setting options changes volume configuration.
dedup <drive> [options]Query or configure ReFS deduplication; review the selected action before applying it.
fixboot <drive> <MajorVersion> <MinorVersion> <ClusterSize> [options]Repair or update ReFS boot metadata; this is a recovery operation and requires careful version and volume checks.
iometrics <drive> [options]Query or configure ReFS volume heat-tracking parameters.
leak <drive> [options]Detect and diagnose storage leaks on a ReFS volume.
-D <source volume> <working directory>Diagnose whether the source ReFS volume is mountable; keep the working directory on a different volume.
-QS / -FSRun quick or full scan phases and record discovered files in the working directory; these can take time and read substantial data.
-QA / -FARun automatic quick or full salvage, including recovery and copying; review source and target paths before use.
-C / -SLCopy recovered files to a target directory; the target must not be on the source volume.
<source volume> / <working directory> / <target directory>The source is the volume being diagnosed; store working files and recovered data on separate locations, never on the source volume.
salvage <mode> <source volume> <working directory> [target directory] [options]Diagnose or recover data from a damaged ReFS volume. Modes have different effects; use -D for diagnosis and consult the source before recovery or copy phases.
streamsnapshot [options] <file[:stream]>Create, list, delete or query stream snapshots for a file.
triage <drive> [/s <id>] [/g] [/v]Scrub ReFS directory contents or global tables; review the target volume and operational impact first.
Safety note

Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.

Official reference ↗Back to directory