Step 1: Run SFC Scan

Run a command-line utility called sfc /scannow as it's used to search for and fix any corrupted Windows system files. Run “sfc /scannow” in Command Prompt after opening it as an administrator.

Step 2: Run DISM RestoreHealth

DISM /Online /Cleanup-Image /RestoreHealth is another command-line tool used to repair corrupted Windows system files.

Step 3: Repeat and Restart

To complete the error repair, you will want to complete step 1 again, and do a restart of your computer to finish the process. Now you have cleared a huge majority of errors. If you are still having issues you will want to do step 4 of this guide.

Step 4: Check Disk (Chkdsk)

For this final step you will need to use a command called chkdsk C: /r. This is a command-line tool used to check the integrity of the files and folders on the hard drive.