How to Do a System Repair on Windows 10
In this article
A system repair on Windows 10 means using the built-in tools to find and fix the files and components that keep Windows running: system files, the boot configuration, the component store, and the disk itself. You do not need a repair disc or third-party software for the common cases. The quickest working set is: run the System File Checker, then DISM to repair the component store, then check the disk, and reboot. If Windows will not start at all, you run the same tools from the Advanced Startup options or from installation media. Before you start, make sure you can sign in with an administrator account, because every command below needs an elevated prompt.
What You'll Need
- An administrator account on the PC.
- About 30–60 minutes, depending on disk speed and how much needs repairing.
- Your BitLocker recovery key if the drive is encrypted — some repair steps and startup changes can trigger a recovery prompt.
- A blank USB drive (8 GB or larger) only if you need to create installation media because Windows will not boot.
- Enough free space on the system drive for DISM and Windows Update to work (a few gigabytes is usually enough).
Step-by-Step
- Back up important files first. Repairs are usually safe, but any operation that touches system files or the boot configuration carries a small risk. Copy documents, photos and anything irreplaceable to an external drive or cloud storage before you begin.
- Open an elevated Command Prompt. Click Start, type cmd, right-click Command Prompt and choose Run as administrator. Approve the User Account Control prompt. Menu labels can differ slightly between Windows 10 versions and regions, but the right-click option is consistent.
- Run the System File Checker. Type
sfc /scannowand press Enter. This scans protected Windows files and replaces corrupted ones from a cached copy. Let it run to 100% — it can take 10–20 minutes. Note the result: "did not find any integrity violations" means nothing was broken; "successfully repaired" means it fixed something; "unable to fix" means you need the next step. - Repair the component store with DISM. In the same window, type
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. This repairs the image that SFC uses as its source, which is why it comes after SFC. It needs an internet connection to pull replacement files from Windows Update. Expect 10–30 minutes; the progress bar may sit at 20% or 84% for a long time, which is normal. - Re-run SFC. After DISM finishes, run
sfc /scannowagain. With a healthy component store, SFC can now fix files it previously could not. This second pass is the step most people skip. - Check the disk for errors. Type
chkdsk C: /scanand press Enter. The /scan switch runs an online scan without taking the drive offline, so you can keep working. If it reports errors, schedule a deeper check withchkdsk C: /f, which will ask to run at the next restart — type Y, then reboot and let it complete. - Repair the boot configuration if startup is the problem. If Windows boots but you see boot-related errors, run
bootrec /scanos, thenbootrec /fixmbr,bootrec /fixbootandbootrec /rebuildbcdone at a time in the elevated prompt. These commands rewrite the master boot record and rebuild the boot menu. Only run them if you are actually having boot trouble — they are not a general tune-up. - Restart the PC. A reboot lets Windows finish applying repairs and clears locked files. Then check whether the original symptom is gone — crashes, missing app components, update failures or slow startup.
- If Windows will not start, use Advanced Startup. Hold Shift while clicking Restart from the sign-in screen or Start menu, or interrupt startup three times to trigger Automatic Repair. Go to Troubleshoot > Advanced options > Command Prompt and run the same SFC, DISM and bootrec commands there. Note that DISM's /Online switch will not work in the recovery environment; use
DISM /Image:C:\ /Cleanup-Image /RestoreHealthinstead, where C: is the Windows drive as seen from recovery (it may be D: there — check withdiskpartorbcdeditif unsure). - Use a repair upgrade as the last resort. If repairs fail and Windows still misbehaves, download the Media Creation Tool from Microsoft's site, run it, and choose Upgrade this PC now while keeping files and apps. This reinstalls Windows over itself and preserves your data and most programs — but back up first anyway, because it is not a guarantee.
Common Mistakes
- Running SFC without DISM. If the component store is damaged, SFC has nothing healthy to copy from and will report it cannot fix files. Always follow SFC with DISM and then SFC again.
- Using a normal Command Prompt. Without administrator rights, SFC and DISM fail immediately with access errors. Check the window title says "Administrator".
- Closing the window when the progress bar stalls. DISM often appears frozen at a fixed percentage. Interrupting it can leave the component store in a worse state. Let it finish.
- Running bootrec commands on a healthy PC. These rewrite boot records and are only for actual boot failures. Running them unnecessarily can break a working dual-boot setup.
- Forgetting BitLocker. Changes to boot files can trigger a recovery-key prompt. Have the key ready before you start, or you may be locked out of your own drive.
- Expecting repairs to fix hardware. SFC and DISM fix software corruption. If the drive is failing or RAM is faulty, the errors will return — run manufacturer diagnostics if problems persist.
Tips
- Run these tools after a failed Windows Update or a sudden power loss — those are the most common causes of file corruption.
- Keep the PC connected to the internet during DISM; without it, RestoreHealth cannot download replacement files and may fail with error 0x800f081f.
- Check the CBS log at
C:\Windows\Logs\CBS\CBS.logif SFC keeps reporting unfixable files — it names the specific file and error. - Run
DISM /Online /Cleanup-Image /CheckHealthfirst if you only want a quick status report; it takes seconds and tells you whether corruption is detected. - Do repairs while plugged in on a laptop. A shutdown mid-DISM can corrupt the component store further.
Troubleshooting
DISM fails with error 0x800f081f. This means it could not find the source files. Check your internet connection, make sure Windows Update is not blocked by a third-party tool, and try again. If it persists, run DISM /Online /Cleanup-Image /StartComponentCleanup first, then retry RestoreHealth.
SFC says it found corrupt files but cannot fix them. Run DISM RestoreHealth, then SFC again. If it still fails, boot into Safe Mode (hold Shift while restarting, then Troubleshoot > Advanced options > Startup Settings > Restart and choose Safe Mode) and repeat both commands there, where fewer files are locked.
chkdsk wants to run at restart but never completes. Let it run without interrupting; on large drives it can take over an hour. If it loops, boot to Advanced Startup and run chkdsk C: /f from the recovery command prompt.
Windows still will not boot after repairs. Try Startup Repair from Advanced options, then System Restore to a point before the problem started. If neither works, the repair upgrade in step 10 is the reliable next move.
Repairs complete but the same errors return. That pattern points to hardware or a failing driver. Run the drive maker's diagnostic tool, check Event Viewer for repeated disk errors, and update chipset and storage drivers from the PC manufacturer's site.
Frequently Asked Questions
Does SFC or DISM delete my files?
No. Both tools work on Windows system files and the component store. Your documents, photos and installed apps are not touched. A repair upgrade also keeps files and apps, but back up regardless.
How long does a full system repair take?
Typically 30–60 minutes for SFC, DISM and a disk scan combined. A slow hard drive or heavy corruption can push it past two hours. Do not interrupt it.
Do I need installation media?
Only if Windows will not boot. For a PC that starts normally, the built-in Command Prompt and Advanced Startup options are enough.
Is DISM safe to run often?
Yes, but there is no need. Run it when you have symptoms or after a failed update. Running it monthly as maintenance is harmless but usually pointless.
Will a system repair fix blue screens?
Sometimes. If the cause is corrupted system files, yes. If it is a faulty driver or failing hardware, repairs will not help — check the stop code and update or roll back the relevant driver.
What is the difference between SFC and DISM?
SFC replaces damaged protected files using a local cache. DISM repairs that cache itself using files from Windows Update. That is why DISM comes after SFC when SFC cannot fix something.