Skip to content

kocken/WindowsRepairScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

WindowsRepairScript

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:

  1. SFC /ScanNow
  2. DISM /Online /Cleanup-Image /CheckHealth
  3. DISM /Online /Cleanup-Image /ScanHealth
  4. DISM /Online /Cleanup-Image /RestoreHealth
  5. 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.

About

Repairs corrupt Windows OS files and disks by executing the SFC, DISM and CHKDSK commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published