Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

System Corruption Repair

Part of the Twomey PC Repair Toolbox — independent tech repair shop in Highland, Arkansas.

No adware. No sponsor offers. No bundled junk.

What it does

Runs the standard four-stage Windows corruption repair sequence in order:

  1. chkdsk /scan — read-only scan of the system drive for filesystem issues.
  2. sfc /scannow — System File Checker repairs protected Windows files.
  3. DISM /Online /Cleanup-Image /RestoreHealth — repairs the underlying component store that sfc pulls from.
  4. sfc /scannow (again) — final verification pass now that DISM has healed the component store.

The second sfc is what catches anything the first pass couldn't fix because the component store itself was damaged.

When to use it

  • Windows feels unstable, throws random errors, or apps crash on launch.
  • Updates fail to install with cryptic component-store errors.
  • sfc /scannow reports "found corrupt files but was unable to fix some of them".
  • General "something's off" diagnostic before reaching for a reinstall.

Files

File For
SystemCorruptionRepair.bat Classic batch — right-click → Run as administrator.
SystemCorruptionRepair.ps1 PowerShell — run from an elevated PowerShell window.

Both versions do exactly the same thing — pick whichever you prefer.

Requirements

  • Windows (any modern version)
  • Administrator privileges (the script will refuse to run otherwise)
  • A working internet connection is recommended — DISM may pull replacement files from Windows Update.

Running it

Batch

Right-click SystemCorruptionRepair.batRun as administrator.

PowerShell

From an elevated PowerShell window:

powershell -ExecutionPolicy Bypass -File .\SystemCorruptionRepair.ps1

Heads up

  • This is not quick. End-to-end runtime is typically 20-60 minutes depending on disk size and how much DISM has to download.
  • Don't interrupt mid-run. If a stage fails the script keeps going so the later stages can still help — review the on-screen output when it finishes.
  • chkdsk /scan is read-only and safe; it does not schedule a reboot-time repair. If you need full repair, run chkdsk /f separately.

About

Four-stage Windows corruption repair — chkdsk + sfc + DISM RestoreHealth + verification pass. Catches corruption a single sfc /scannow can't, including damaged component stores. 20–60 min, admin required.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages