Run the built-in Windows file checker first

Windows 11 includes a tool called the System File Checker (SFC) that scans your system files and repairs corrupted ones automatically. This is the fastest way to catch problems before they cause crashes or slow performance. The tool runs from the command line, but the steps are straightforward.

Open the Start menu, type Command Prompt, right-click it, and select Run as administrator. When the window opens, type sfc /scannow and press Enter. The scan will take 15 to 30 minutes. Do not close the window or restart your computer while it runs. If Windows finds corrupted files, it will repair them automatically.

After the scan finishes, Windows will tell you one of three things: no integrity violations were found, violations were found and repaired, or violations were found but could not be repaired. If repairs were made, restart your computer. If violations could not be repaired, move to the next tool.

Key Takeaways

  • The System File Checker (SFC) is built into Windows 11 and scans for corrupted system files by running sfc /scannow from an administrator command prompt.
  • If SFC cannot repair corrupted files, the DISM tool can restore them from Windows Update or a recovery image.
  • Check your hard drive for physical errors using the Check Disk utility, which you can schedule to run at the next restart.
  • If corruption happens repeatedly, your hard drive may be failing and should be backed up and replaced.

Use DISM when SFC cannot repair files

The Deployment Image Servicing and Management tool (DISM) goes deeper than SFC. It can restore corrupted system files from Windows Update or from a recovery image stored on your computer. Use DISM if SFC found violations but could not fix them.

Open Command Prompt as administrator again and type DISM /Online /Cleanup-Image /RestoreHealth. This command downloads fresh copies of corrupted files from Microsoft's servers and replaces the damaged ones. The process takes 20 to 45 minutes depending on your internet speed and how many files need replacement. Your computer must stay connected to the internet and powered on.

After DISM finishes, run SFC again to confirm the repairs worked. If DISM also reports that it could not repair some files, the corruption may be in a part of Windows that cannot be fixed without a fresh installation.

Check your hard drive for physical errors

File corruption often signals that your hard drive is beginning to fail. Windows includes a tool called Check Disk that scans the physical drive for bad sectors and attempts to repair them. This is different from SFC — it checks the hardware itself, not just the files stored on it.

Open File Explorer, right-click your C: drive (or whichever drive you want to check), select Properties, then click the Tools tab. Under Error checking, click Check. Windows will ask if you want to scan the drive now or schedule it for the next restart. Choose Scan and repair drive if the drive is not your system drive. If it is your C: drive, Windows will schedule the check for startup, restart your computer, and run the scan before Windows loads.

The scan can take 30 minutes to several hours depending on drive size. Do not turn off your computer during this time. When it finishes, Windows will show you how many errors were found and repaired.

Understand what corrupted files actually mean

A corrupted file is one where the data inside has been damaged or altered so the program that uses it cannot read it correctly. This can happen when a file is being written and the power cuts out, when a virus or malware damages files, when a hard drive has failing sectors, or when a program crashes while saving.

System file corruption is more serious than regular file corruption because Windows itself cannot run properly without those files. If you notice your computer crashing, freezing, or refusing to start, corrupted system files are often the cause. Regular file corruption — like a single document or photo becoming unreadable — usually only affects that one file.

What to do if corruption keeps happening

If you run SFC and DISM multiple times and corruption keeps coming back, your hard drive is almost certainly failing. Repeated corruption in the same files or in different files over a short period means the drive's physical storage is degrading.

Back up your important files when ready to an external drive or cloud storage. Then replace the hard drive or solid-state drive (SSD). If your computer is still under warranty, contact the manufacturer. If not, you can buy a replacement drive and either install it yourself (if you are comfortable opening your computer) or take it to a repair shop.

Do not ignore repeated corruption. A failing drive can lose all your files without warning, and the longer you wait, the more data you risk losing.

When to do a clean Windows installation

If SFC and DISM both fail to repair corrupted files, and Check Disk shows your hard drive is healthy, the corruption may be too deep to fix with these tools. In that case, a clean installation of Windows 11 is your last option.

A clean installation erases everything on your drive and installs Windows fresh. This removes all corrupted files but also removes all your programs and personal files. Before you do this, back up everything you want to keep to an external drive. Then read the Windows 11 installation media from Microsoft's website, create a bootable USB drive, and follow Microsoft's installation steps.

A clean installation takes 30 to 60 minutes and requires you to reinstall all your programs afterward. It is a last resort, but it solves corruption problems that the repair tools cannot fix.

Frequently Asked Questions

How long does the System File Checker take to run?

The SFC scan typically takes 15 to 30 minutes. The time depends on how many files Windows needs to check and how fast your hard drive is. Do not interrupt the scan or restart your computer while it is running.

Can I use these tools on an external hard drive?

SFC and DISM only work on your Windows system drive (usually C:). For external drives, use Check Disk instead. Right-click the external drive in File Explorer, select Properties, go to the Tools tab, and click Check.

What does it mean if SFC says "Windows Resource Protection could not perform the requested operation"?

This usually means you did not open Command Prompt as administrator. Close the window, right-click Command Prompt, select Run as administrator, and try again. Make sure you are logged in with an account that has administrator rights.

Will these tools delete my files?

SFC and DISM repair corrupted files but do not delete them. Check Disk may move corrupted files to a recovery folder if it cannot repair them. A clean Windows installation will erase everything on your drive, so back up first if you go that route.

Can I run these tools while using Windows normally?

SFC and DISM can run while you use other programs, but your computer will be slower. Check Disk cannot run on your system drive while Windows is running — it must be scheduled for the next restart. For best results, close other programs and let the tools run without interruption.