Category: PowerShell & Command-line Scripts
Author: Microsoft / PCHF Staff
Compatibility: Windows 10 / 11 (25H2 supported)
Summary:
Sequential script to verify and repair system files using built-in Microsoft tools. Automates SFC, DISM CheckHealth, ScanHealth, and RestoreHealth operations.
Usage:
Code:
sfc /scannow DISM /Online /Cleanup-Image /CheckHealth DISM /Online /Cleanup-Image /ScanHealth DISM /Online /Cleanup-Image /RestoreHealth Dism /Online /Cleanup-Image /StartComponentCleanup
• Run in an elevated Command Prompt or PowerShell.
• Requires Internet access or ISO source for component repair.
• Combine with [RELATED]DISM • Complete Guide (Windows 11 25H2)|https://pchelpforum.net/threads/dism...s-11-25h2.XXXX[/RELATED]
Last updated: October 2025 • Verified by PCHF Staff