NTFS Integrity Streams: Per-File Checksums on Windows


An NTFS integrity stream attaches a checksum to a file so Windows can tell whether its content has changed. It is a per-file option, disabled by default, and it addresses a narrow but real problem: data that is silently corrupted without any read error.

The feature is often confused with backups, RAID and cloud versioning. It does none of those things. It detects corruption; it does not restore data.

What an Integrity Stream Is

NTFS stores files as records plus data streams. When integrity is enabled, the file system keeps a checksum of the file data and verifies it when the file is read. If the checksum does not match, the read fails with an error instead of returning corrupted bytes as if they were valid.

This turns a silent problem into a visible one. An application that would have opened a damaged file now reports an error, which is far better than saving the damaged version over a good copy.

How It Differs from a Backup

MechanismProtects againstCan restore data
Integrity streamSilent corruption on readNo
RAIDDrive failureYes, while redundancy remains
BackupDeletion, corruption, disasterYes, from the backup copy

On a Storage Spaces volume with redundancy, the system can sometimes repair a bad block from another copy. On a plain NTFS disk there is no second copy, so the checksum only tells you that the file is damaged.

How to Enable It

Windows exposes the setting through the Storage module in PowerShell. Run it in an elevated session:

The option applies to the file you specify. Apply it to the files that matter, such as archives, disk images and long-term documents, rather than to an entire system volume where the overhead buys little.

What It Costs

ReFS goes further and applies integrity to metadata by default, with optional integrity streams for file data. That is one reason ReFS is preferred for some server workloads and not for a boot volume.

When to Use It

Do not treat it as a replacement for backups. A checksum that reports corruption after the only copy is damaged has done its job, but the data is still gone.

Protecting the Data First

Before you change file attributes on an archive, make sure a backup exists. Qiling Disk Master can image the whole disk, which preserves the files and their NTFS metadata.

Step 1. Connect a destination drive and open the Backup and Recovery tab.

open Disk/Partition backup before changing file attributes

Step 2. Tick the disk that holds the archive and click the folder icon to choose a destination.

select the disk that holds the archive

Step 3. Select a folder on the destination drive and click OK.

choose the backup destination folder

Step 4. Click Proceed and let the image finish before you enable integrity streams.

disk backup running in Qiling Disk Master

Does integrity slow down everyday use?

On documents and archives the effect is negligible. On a volume with millions of small files, the checksum work adds measurable CPU time during full scans.

Can I enable it for a whole folder?

The cmdlet targets individual files. Scripts can walk a folder and apply the setting, but the option is stored per file, so new files need to be handled again.

What happens when the checksum fails?

The read is reported as an error. On redundant storage the system may repair the block; on a single disk the file must be restored from a backup.

Related Articles


Is this information helpful?     

What can we do to improve this information? (Optional)
Refresh Please enter the verification code!


QilingTech uses cookies to ensure you get the best experience on our website.  Learn more  Got it