How to Fix Corrupted Files in Windows 11 & 10 (10 Proven Methods)
In this guide, you'll learn how to fix corrupted files in Windows 11 and Windows 10 using 10 proven methods, starting with the simplest built-in tools and working up to more advanced repairs. Every step is written for beginners, so you don't need any technical background to follow along.
sfc /scannow) followed by DISM RestoreHealth. These two built-in tools repair most corrupted system files automatically, without deleting your personal data.
Table of Contents
- What Causes Corrupted Files in Windows?
- Signs Your Files or System Are Corrupted
- Before You Begin
- Fix 1: Run an SFC Scan
- Fix 2: Run DISM RestoreHealth
- Fix 3: Restart in Safe Mode and Try Again
- Fix 4: Run an Offline SFC Scan
- Fix 5: Manually Replace a Corrupted File
- Fix 6: Use System Restore
- Fix 7: Run CHKDSK to Fix Disk Errors
- Fix 8: Use Startup Repair
- Fix 9: Reset This PC
- Fix 10: Clean Install Windows
- How to Prevent File Corruption in the Future
- FAQ
- Related Articles
What Causes Corrupted Files in Windows?
Corrupted files don't appear out of thin air. Something on your PC triggers them, and knowing the cause helps you pick the right fix instead of guessing.
- Sudden power loss — a shutdown mid-write to disk while Windows is saving or updating a file.
- Bad sectors on the hard drive or SSD — physical or logical damage that scrambles stored data.
- Malware or virus infections — some malware deliberately damages system files to hide itself.
- Failed Windows updates — an update that's interrupted partway through can leave system files half-written.
- Running low on storage or memory — Windows can fail to write files correctly when resources run out. If this happens often, our guide to fixing low memory issues on a Windows PC is worth a look.
- Faulty RAM or a failing drive — hardware errors can silently corrupt data as it's written.
- Improperly removed USB drives — yanking out a USB drive while it's transferring data is a common cause of corrupted files. If Windows won't recognize a drive afterward, see our USB device not recognized fix.
- Third-party disk tools and forced shutdowns—cleanup utilities that interrupt a file mid-write or holding the power button during a Windows Update can leave critical files half-written and unreadable.
Most of the time it's not just one of these on its own—it's a combination, like a power outage happening while an update is installing. That's why the fixes below start with software-level repairs and only move toward disk checks and reinstalling Windows if the simpler methods don't resolve things.
Signs Your Files or System Are Corrupted
File corruption doesn't always announce itself clearly. Here are the most common warning signs:
- Apps crash immediately or won't open at all
- File Explorer freezes or stops responding when browsing certain folders
- You suddenly get a message that your PIN is no longer available for sign-in
- Random blue screens, error codes, or a white screen at startup
- No sound, missing drivers, or devices that stop working after a restart
- Unusual system slowdowns, including Desktop Window Manager using unusually high GPU
- Your keyboard stops working intermittently, even though the hardware is fine
If any of this sounds familiar, don't panic. Work through the fixes below in order—they're arranged from safest and simplest to more advanced.
Two Kinds of "Corrupted Files" (and Why It Matters)
Before jumping into fixes, it helps to know which type of corruption you're dealing with, because the right tool depends on it.
- Corrupted system files — these are the core Windows files that keep the operating system running. When these break, you'll see crashes, error codes, boot failures, or missing features. This is what SFC, DISM, CHKDSK, and Startup Repair are built to fix.
- Corrupted personal files — a single document, photo, video, or downloaded file that won't open properly. This usually happens from an interrupted transfer, a bad USB removal, or a failing drive, and it's fixed differently — often by re-downloading the file, restoring from a backup, or using file-repair software for that specific format.
This guide focuses mainly on system-level corruption, since it's the more common—and more disruptive—of the two. If it's a single personal file causing trouble, start with Fix 6 (System Restore) or check whether you have a cloud backup or previous version saved.
Which Fix Should You Try First?
If you're not sure where to start, use this quick guide based on your symptoms:
- Apps crashing or random errors while Windows runs normally → Start with Fix 1 (SFC) and Fix 2 (DISM).
- SFC scan keeps failing or can't complete the repair → Run Fix 2 (DISM) first, then repeat Fix 1.
- Fixes 1–2: Won't run properly, or files are locked → Try Fix 3 (Safe Mode).
- Windows won't boot into the desktop at all → Skip ahead to Fix 4 (offline SFC), Fix 8 (Startup Repair), or Fix 9 (Reset This PC).
- Problem started right after an update or new software → Try Fix 6 (System Restore) first.
- You suspect a failing drive → Run Fix 7 (CHKDSK) before anything else.
Before You Begin
A couple of quick prep steps will save you time:
- Back up important files if you can — a quick copy to a USB drive or cloud storage is enough.
- Check your PC specs so you know your Windows version and available storage before troubleshooting. Here's how to check your PC specs in Windows.
- Make sure you're logged in as an administrator, since most of these fixes need admin rights.
Fix 1: Run an SFC Scan
The System File Checker (SFC) is Windows' built-in repair tool, and it should always be your first step. It scans every protected system file, compares it against a clean cached copy, and automatically replaces anything that's damaged or missing.
- Click Start, type cmd, right-click Command Prompt, and choose Run as administrator.
- Type the following command and press Enter:
sfc /scannow
The scan usually takes 10–20 minutes. Don't close the window while it's running. When it finishes, you'll see one of three messages:
- "Windows Resource Protection did not find any integrity violations" — your system files are fine; move on to another fix.
- "Windows Resource Protection found corrupt files and successfully repaired them"—the problem is fixed. Restart your PC.
- "Windows Resource Protection found corrupt files but was unable to fix some of them" — move on to Fix 2.
Why does SFC sometimes fail to complete the repair? It relies on a local cache of clean, original Windows files stored on your PC. If that cache is itself damaged or the specific file version doesn't match what's expected, SFC has nothing reliable to copy from—which is exactly the gap Fix 2 is designed to close.
Fix 2: Run DISM RestoreHealth.
DISM (Deployment Image Servicing and Management) repairs the underlying Windows system image itself. This is essential when SFC can't complete its repair, because SFC pulls clean files from that same image.
- Open Command Prompt as administrator again.
- Run this command:
DISM /Online /Cleanup-Image /RestoreHealth
This process downloads replacement files from Windows Update, so make sure you're connected to the internet. It can take 15–30 minutes and may appear stuck at certain percentages (like 20% or 40%); that's normal, so let it run.
Once it finishes, run sfc /scannow again. With a repaired system image in place, SFC will usually complete successfully this time.
If your PC has no internet connection, DISM can also pull replacement files from a mounted Windows ISO instead of Windows Update, using the /Source flag. This is a good option on a fresh install or a PC with limited connectivity.
Fix 3: Restart in Safe Mode and Try Again
Sometimes a background app or driver locks a file that SFC or DISM needs to replace, which causes the repair to fail. Safe Mode loads Windows with only the essentials running, clearing that conflict out of the way.
For full step-by-step instructions, see our guide on how to boot Windows 10 & 11 in Safe Mode. Once you're in Safe Mode, repeat Fix 1 and Fix 2 from a Command Prompt.
Safe Mode is also useful for narrowing down the cause. If your PC runs fine in Safe Mode but keeps crashing normally, that points toward a third-party app or driver rather than deep system corruption — worth keeping in mind if the repairs above don't fully resolve things.
Fix 4: Run an Offline SFC Scan.
If Windows won't fully boot, or a critical file is corrupted while Windows is running (so it can't be replaced live), you can run SFC from outside your normal Windows environment using bootable installation media.
- Create a bootable USB drive using the Media Creation Tool. If Windows doesn't detect your USB drive properly at any point, check our USB device not recognized guide.
- Boot from the USB drive and select Repair your computer > Troubleshoot > Advanced options > Command Prompt.
- Find your Windows drive letter (it's often
D:in this environment, notC:) by typing:
wmic logicaldisk get caption
- Run the offline scan, replacing the letters with your actual drive letters:
sfc /scannow /offbootdir=D:\ /offwindir=D:\Windows
This lets SFC repair files even though the damaged copy of Windows isn't currently running. It's a more technical process than the earlier fixes, but it's often the difference between a full reinstall and a quick repair when Windows can't start normally.
Fix 5: Manually Replace a Corrupted File
If SFC identifies a specific file it can't fix, you can sometimes replace it manually with a healthy copy from another PC running the same Windows version and build.
- Check the log at
C:\Windows\Logs\CBS\CBS.logto find the exact file path SFC couldn't repair. - Take ownership of the file:
takeown /f C:\path\to\file
icacls C:\path\to\file /grant administrators:F
- Copy a known-good version of the file from a matching Windows installation, then paste it into the same location, overwriting the damaged one.
Fix 6: Use System Restore
.If the corruption started after a recent update, driver installation, or software change, System Restore can roll your PC back to a point before the problem began—without touching your personal files.
- Type Create a restore point in the Start menu search and open it.
- Click System Restore and choose a restore point dated before the issue started.
- Follow the prompts and let your PC restart.
This only works if System Protection was turned on beforehand and restore points exist. If you don't see any listed, skip to the next fix.
It's worth checking that system protection is switched on now, even if it wasn't before, so you have a safety net for next time. You'll find this under System Protection in the same window — enable it for your main drive and set aside a small amount of disk space for future restore points.
Fix 7: Run CHKDSK to Fix Disk Errors.
- Open Command Prompt as an administrator.
- Run:
chkdsk C: /f /r
Since your system drive is in use, Windows will ask to schedule the scan on the next restart — type Y and reboot. The scan can take anywhere from 20 minutes to a couple of hours depending on drive size and health, so let it run fully.
Disk-level corruption can also cause unrelated symptoms, like a DNS server not responding error or devices that randomly disconnect—worth keeping in mind if CHKDSK turns up repaired sectors.
If CHKDSK reports a large number of bad sectors, treat that as an early warning rather than a one-time fix. Bad sectors tend to increase over time on aging drives, so back up your files soon and consider replacing the drive if the count keeps growing after future scans.
Fix 8: Use Startup Repair.
- Force your PC to shut down 2–3 times during boot to trigger Automatic Repair, or boot from installation media.
- Select Troubleshoot > Advanced options > Startup Repair.
- Let Windows scan and fix startup-related issues automatically.
If your PC won't boot at all and shows a "no bootable device" message instead, that's a different issue with its own fixes — see our guide on the No Bootable Device Found error (13 fixes). A corrupted boot sector can also show up as a white screen at startup, so that guide is worth checking too if Startup Repair doesn't resolve it.
Fix 9: Reset This PC.
If nothing above has worked, Reset This PC reinstalls Windows while giving you the choice to keep your personal files. It replaces every system file with a fresh copy, wiping out corruption that's too deep for SFC or DISM to reach.
- Go to Settings > System > Recovery.
- Click Reset PC.
- Choose Keep my files to preserve personal documents, photos, and data while reinstalling Windows itself.
This process can take an hour or more. Apps will need to be reinstalled afterward, but your files, photos, and documents stay intact.
There's also a "Remove everything" option in the same menu, which wipes the drive completely. Choose this only if you've already backed up everything you need—it's a good middle ground between Keep my files and a full manual clean install.
Fix 10: Clean Install Windows
If corruption is severe, widespread, or tied to a failing drive, a clean install is the most reliable fix. It wipes the drive completely and installs Windows from scratch.
- Back up all your personal files first—a clean install erases everything on the drive.
- Create bootable installation media using the Media Creation Tool.
- Boot from the USB drive, choose Custom install, and select your drive to install a fresh copy of Windows.
This should be your last resort, but it guarantees a 100% clean system with zero leftover corruption.
After a clean install, take a few minutes to install Windows Updates and your storage/chipset drivers before restoring your personal files. Setting up System Protection and a regular backup routine at this point will make any future corruption far easier to recover from.
How to Prevent File Corruption in the Future
- Use a UPS or laptop battery backup to avoid sudden power loss during writes
- Keep at least 15–20% of your drive free—running low on space is a common trigger, so check out our tips to fix low memory on a Windows PC
- Always use "Safely Remove Hardware" before unplugging USB drives
- Keep Windows Update and your antivirus running regularly
- Run
sfc /scannowoccasionally as routine maintenance, even before problems appear
Frequently Asked Questions
What is the fastest way to fix corrupted files in Windows?
Running sfc /scannow in an administrator Command Prompt is the fastest first step. It automatically finds and repairs damaged system files in most cases within 10–20 minutes.
Does DISM RestoreHealth delete my files?
No. DISM only repairs the underlying Windows system image. Your personal files, documents, and installed apps are untouched.
Can corrupted files cause my PC to run slowly?
Yes. Corrupted system files can trigger crashes, freezing apps, and unusual slowdowns, including issues like high GPU usage from background processes.
What's the difference between SFC and CHKDSK?
SFC repairs damaged Windows system files, while CHKDSK scans and repairs the physical or logical health of the drive itself, including bad sectors and file system errors.
Will Reset This PC delete my personal files?
Not if you choose the Keep my files option. It reinstalls Windows and removes apps, but your documents, photos, and personal files remain.
How do I know if a corrupted file is caused by a failing hard drive?
If CHKDSK repeatedly finds and repairs bad sectors, or corruption keeps returning after fixing it, that's a strong sign your drive may be failing and should be backed up immediately.
Do I need to run SFC and DISM every time Windows updates?
No, not routinely. It's a good idea to run sfc /scannow occasionally as maintenance, but you only need DISM when SFC reports errors it can't fix or when you're troubleshooting a specific problem.
Can I fix corrupted files without losing any data?
Yes. Fixes 1 through 8 in this guide — SFC, DISM, Safe Mode, offline SFC, manual file replacement, System Restore, CHKDSK, and Startup Repair — do not delete your personal files. Only Fix 9 and Fix 10 involve reinstalling Windows, and even Reset This PC lets you keep your files if you choose that option.
Related Articles
- Windows 10 No Bootable Device Found Error: 13 Fixes
- Fix White Screen on Laptop Startup Windows 10 & 11
- Your PIN Is No Longer Available Windows 11 & 10
- Windows 11 File Explorer Not Responding
- Fix Low Memory on Windows PC
- Desktop Window Manager High GPU Usage
- Boot Windows 10 & 11 in Safe Mode
- Check PC Specs in Windows
- DNS Server Not Responding
- No Sound on Windows 10 & 11
- USB Device Not Recognized









