Script Builder

Build a safe Windows repair script

Choose a safe workflow, review each command, then generate a PowerShell or CMD script. WinRepairTools does not run anything on your PC.

Review first

Commands in this workflow

Unchecked commands will be skipped when generating the script.

DISM /Online /Cleanup-Image /CheckHealth

Quickly checks whether Windows component store corruption has already been detected.

Run as Administrator.
DISM /Online /Cleanup-Image /ScanHealth

Performs a deeper scan of the Windows component store for corruption.

Run as Administrator. This can take several minutes.
DISM /Online /Cleanup-Image /RestoreHealth

Repairs the Windows component store used by SFC and other system repair tools.

Run as Administrator. Internet access may be required.
sfc /scannow

Scans protected Windows system files and attempts to repair corrupted or missing files.

Run Command Prompt or PowerShell as Administrator.

Generated script

Generated by the WinRepairTools API. Review every command before running it.