Repairs corrupt Windows OS files and fixes disk errors by executing the SFC, DISM and CHKDSK Windows commands from a batch script file.
These commands are frequently recommended to fix Windows system errors. I couldn't find any script online to easily execute all of these commands one by one, so I made it myself.
You only need to start the "Run.bat" file, the "CHKDSK_scan.ps1" powershell file is run from the batch file. The file(s) will execute the commands below, in the same order as listed:
- SFC /ScanNow
- DISM /Online /Cleanup-Image /CheckHealth
- DISM /Online /Cleanup-Image /ScanHealth
- DISM /Online /Cleanup-Image /RestoreHealth
- CHKDSK :drive /F /X - This command is optional by prompt. This command is run on all local drives, whereas HDD drives has the option to use the /R parameter to scan for bad sectors, for a more comprehensive scan.