0x0000027A: Corrupt System File Fixed
Windows says a system file got corrupted and already replaced it—but you're still seeing the error. Here's how to fix what's left behind.
What You're Seeing
When you boot Windows or open an app, you get this error: ERROR_CORRUPT_SYSTEM_FILE (0x0000027A) — "The system file %1 has become corrupt and has been replaced."
This usually happens after a botched update, a sudden power loss while Windows was writing a file, or a failing hard drive. I've seen it most often on Windows 10 and 11 after a cumulative update fails halfway through. The system did replace the file, but the damage is often deeper—registry entries get mangled, or other files in the same batch didn't get fixed.
Good news: most people fix this in under 5 minutes. Let's walk through it.
Fix 1: Run System File Checker (SFC) – 30 seconds
This is the simplest check. Windows already found one corrupt file, so SFC might find others.
- Press the Windows key, type cmd, right-click Command Prompt, select Run as administrator.
- In the black window, type this command and press Enter:
sfc /scannow - Wait for the scan to finish. You'll see one of these messages:
- Windows Resource Protection did not find any integrity violations. — Move to Fix 2.
- Windows Resource Protection found corrupt files and successfully repaired them. — Restart your PC. If the error is gone, you're done.
- Windows Resource Protection found corrupt files but was unable to fix some of them. — Run Fix 2 next.
- Open Command Prompt as administrator again (same steps as Fix 1).
- Run this command exactly:
DISM /Online /Cleanup-Image /RestoreHealth - Let it run. It will connect to Windows Update and replace corrupt files. The progress bar stops at 20% for a while—that's normal.
- When it says The restore operation completed successfully, close the window.
- Now run SFC again:
sfc /scannow - Restart your PC after SFC finishes and says everything is repaired.
- Open Command Prompt as administrator.
- Run these commands one at a time, pressing Enter after each:
net stop wuauservnet stop cryptSvcnet stop bitsnet stop msiserver - Rename the SoftwareDistribution and Catroot2 folders. This tells Windows to rebuild them from scratch. Type this and press Enter:
ren C:\Windows\SoftwareDistribution SoftwareDistribution.oldren C:\Windows\System32\catroot2 Catroot2.old - Restart the services you stopped:
net start wuauservnet start cryptSvcnet start bitsnet start msiserver - Close the Command Prompt. Restart your PC.
- Now run DISM again (Fix 2), then SFC (Fix 1).
- Open Command Prompt as administrator.
- Run:
chkdsk C: /f /r - It will say the drive is in use and ask if you want to schedule it for next reboot. Type Y and press Enter.
- Restart your PC. The scan will run before Windows loads. It checks every sector—this can take an hour or more on a large drive.
- After it finishes, run SFC and DISM again (Fixes 1 and 2).
- Download the Windows 10 or 11 Media Creation Tool from Microsoft's website. Use the same edition you have (Home vs Pro).
- Run the tool. Select Upgrade this PC now.
- On the Choose what to keep screen, select Keep personal files and apps.
- Click Install. Your PC will restart several times.
- After it finishes, check if the error is gone.
What to expect: The scan takes 5 to 15 minutes depending on your drive speed. A spinning cursor means it's working. Don't close the window.
Fix 2: DISM to Repair the System Image – 5 minutes
If SFC couldn't fix everything, the system image itself is damaged. DISM (Deployment Imaging Service and Management) downloads fresh copies of system files from Windows Update.
What to expect: DISM takes 15 to 30 minutes. If your internet is slow, longer. If you see error 0x800f081f, your Windows Update component is busted—skip to Fix 3.
Fix 3: Repair Windows Update Components – 15 minutes
Sometimes the update service itself is broken. This fix resets the whole thing. I've used it on dozens of machines where DISM failed with 0x800f081f.
What to expect: After restarting, Windows Update will rebuild the folder from scratch. This clears out any corrupted update cache that caused the original file corruption.
Fix 4: Check Your Hard Drive for Errors – 15+ minutes
If none of the above worked, your hard drive might be failing. I once spent two hours chasing a corrupt file on a laptop—turns out the drive had bad sectors. Replacing it fixed everything.
What to expect: A black screen with white text showing progress. If chkdsk finds bad sectors that it can't repair, back up your data immediately and replace the drive.
Fix 5: In-place Upgrade (Repair Install) – Last Resort
When everything else fails, a repair install keeps your files and apps but reinstalls every Windows system file. It's the nuclear option—takes about an hour but fixes 99% of corruption issues.
What to expect: It looks like a normal Windows update but takes longer. Your desktop icons and files stay put. This is the fix that saved me when a Windows 10 update nuked the WinSxS folder on a client's machine.
If the error 0x0000027A still appears after a repair install, your hardware is the likely culprit. Run a memory test (Windows Memory Diagnostic) and check your drive's SMART status using CrystalDiskInfo or a similar tool. Bad RAM can corrupt files silently.
Was this solution helpful?