What corrupted files are and how to find them

A corrupted file is one whose data has been damaged or altered, usually by a crash, power loss, malware, or a failed download. Windows 11 can't read it properly, so the program that needs it either fails to open, freezes, or produces an error. You can scan for corrupted system files using built-in Windows tools — the most direct is the System File Checker, which runs from the command line and repairs damage it finds.

Windows 11 also includes a second tool called the DISM (Deployment Image Servicing and Management) utility, which checks the system image itself and can restore corrupted files from a backup. Both tools are free and come with Windows. Most corrupted files live in the system folders that Windows uses to run, not in your personal documents, so these scans focus there.

If a specific program keeps crashing or a file you own won't open, the corruption is usually in that one file, not system-wide. In that case, the tools below may not find it — you would need to replace the file itself, reinstall the program, or recover an older version from backup.

Key Takeaways

  • The System File Checker (sfc /scannow) is the fastest way to find and repair corrupted Windows system files, and it runs from the command prompt.
  • DISM is a second-level scan that checks the system image itself and can restore files from a backup when the System File Checker cannot fix them.
  • Both tools must run as administrator and require a restart; the System File Checker scan takes 15 to 60 minutes depending on your drive size.
  • If a single program or document is corrupted, these system scans may not find it — you will need to reinstall the program or restore the file from backup.

How to run the System File Checker scan

Open the Start menu, type cmd, right-click on "Command Prompt," and select "Run as administrator." Windows will ask for permission; click "Yes." In the command prompt window, type sfc /scannow and press Enter. The scan will begin immediately and may take 15 to 60 minutes depending on your drive size and how many files Windows needs to check.

While the scan runs, you will see a progress bar. Do not close the window or restart your computer. When it finishes, the command prompt will show one of three messages: "No integrity violations were found" (your system files are fine), "Some integrity violations were found and repaired" (corruption was fixed), or "Some integrity violations were found but could not be repaired" (you need to run DISM next).

If the scan found and repaired violations, restart your computer. If it found violations it could not repair, note that message and move to the DISM scan below. If no violations were found and your computer is still having problems, the corruption is likely in a program or personal file, not in Windows system files.

How to run the DISM scan when System File Checker fails

Open the Start menu, type cmd, right-click on "Command Prompt," and select "Run as administrator." In the command prompt window, type DISM /Online /Cleanup-Image /RestoreHealth and press Enter. This scan checks the system image and attempts to restore corrupted files from a backup that Windows maintains. It typically takes 20 to 40 minutes.

Like the System File Checker, DISM will show a progress bar and should not be interrupted. When it finishes, it will report whether it found and repaired any issues. If DISM succeeds, restart your computer. If DISM also reports that it cannot repair the corruption, your Windows installation may be too damaged to fix with these tools — you would need to repair or reinstall Windows itself.

In most cases, running both scans in order (System File Checker first, then DISM if needed) will find and repair the problem. If both tools report no violations but your computer is still unstable, the issue is likely hardware-related (a failing drive) or corruption in a program or file outside the Windows system folders.

Checking for corrupted files in a specific program or folder

If a particular program crashes or a file won't open, the corruption is usually in that program or file, not in Windows itself. The System File Checker and DISM scans above will not find it. Instead, try uninstalling and reinstalling the program — this replaces all its files with fresh copies from the installer.

For a single document or file that won't open, check whether you have a backup or an older version. Windows 11 includes a "Previous Versions" feature for files stored on your drive. Right-click the file, select "Properties," click the "Previous Versions" tab, and choose an earlier version to restore. If no previous version exists, the file may be permanently corrupted and unrecoverable.

If a program is crashing but reinstalling does not fix it, the corruption may be in a shared library or component that the program depends on. Running the System File Checker scan can sometimes repair these shared components, even if the program itself is not a Windows system file.

What to do if Windows needs to be repaired or reinstalled

If both the System File Checker and DISM report that they cannot repair corruption, Windows itself may be too damaged to fix. You have two options: use Windows Repair (which attempts to fix the installation without erasing your files) or perform a clean install (which erases everything and reinstalls Windows from scratch).

To access Windows Repair, restart your computer and press the key for boot options during startup — usually F12, F2, or Del, depending on your computer model. Look for an option like "Repair your computer" or "Troubleshoot." This will give you access to repair tools without fully reinstalling Windows. If repair fails, you can proceed to a clean install from the same menu.

A clean install requires a Windows 11 installation USB or download, which you can create on another computer using the Windows 11 Media Creation Tool from Microsoft's website. This process erases your drive, so back up your files first if possible. After a clean install, you will need to reinstall your programs and restore your files from backup.

Understanding what causes file corruption

File corruption usually happens for one of a few reasons: a power loss or sudden shutdown while Windows was writing to the drive, a hardware failure (a failing hard drive or SSD), malware or a virus that damages files, or a failed download or software update. In most cases, the corruption is limited to a few files, and the System File Checker can repair them.

If corruption happens repeatedly, the underlying cause is usually hardware — a failing drive, a loose cable, or a power supply that is not stable. If you see repeated corruption warnings or your computer crashes often, back up your important files and consider having the drive tested. Many computer repair shops can run a drive diagnostic for free or low cost.

Malware can also cause file corruption, though it usually damages files in ways that are obvious (programs stop working, files go missing). If you suspect malware, run a full antivirus scan using Windows Defender (built into Windows 11) or a third-party antivirus program before assuming the corruption is accidental.

Frequently Asked Questions

Can I use my computer while the System File Checker is running?

You can, but it is not recommended. The scan reads many files from your drive, and using your computer at the same time may slow both the scan and your work. It is better to start the scan and let it run uninterrupted. Most scans finish in under an hour.

What does "integrity violations" mean?

An integrity violation is a corrupted file that Windows detected. The System File Checker compares files on your drive to known good versions and flags any that do not match. A violation does not mean your computer is broken — it means one or more files need repair.

Do I need to restart after running DISM?

Yes, restart your computer after DISM finishes, especially if it reports that it repaired violations. The restart allows Windows to load the repaired files and complete any remaining fixes.

What if the command prompt says "access denied"?

You did not run the command prompt as administrator. Close it, open the Start menu again, right-click on "Command Prompt," and select "Run as administrator." Windows will ask for permission; click "Yes" to proceed.

Can corrupted files cause my computer to be slow?

Yes, if corrupted files are in system folders that Windows uses constantly, they can cause slowdowns, freezes, or crashes. Running the System File Checker scan can identify and repair these files. If your computer is slow but the scan finds no violations, the slowness is likely caused by something else, such as too many startup programs or a full drive.