@echo off echo Starting Windows System Repair... echo --------------------------------- echo Running SFC Scannow... sfc /scannow echo Running DISM Repair... DISM /Online /Cleanup-Image /RestoreHealth echo Clearing DNS Cache... ipconfig /flushdns echo --------------------------------- echo Process Complete. Please restart your PC. pause Use code with caution. Copied to clipboard Why Use a Batch File Instead of Manual Commands? : It executes multiple commands in seconds.
: Most system fixes require elevated permissions. Right-click the file and select Run as Administrator . fix_error.bat
Scans for and repairs corrupted Windows system files. sfc /scannow @echo off echo Starting Windows System Repair