The System File Checker routine within the Windows operating system can be used to solve erratic issues within windows itself by cross checking the system files with an internal database.

This will find corrupted windows system files which the command then replaces with uncorrupted versions.


To begin we will need to open the command prompt with administrator privileges in order to alter the operating system.


1. Open Command Prompt:Type cmd within the search section of the task bar, Right click Command Prompt and click Run as Administrator.

(Alternatively, Right click the windows icon and click search if it isn't showing a search section.)



In the following box that appears we'll want to check the database we are cross referencing to make sure that our database itself isn't corrupted. We will need internet connection for this.


2. Run DISM Command: To do this we will start by using the DISM Command as follows. (Please copy and paste the next line as is) CTRL+C (copy) and CTRL+V (paste) inside the window.

DISM /Online /Cleanup-Image /ScanHealth


If any corruption is found, we can use the following command to fix the database. (This isn't required if no corruption is found)

DISM /Online /Cleanup-Image /RestoreHealth


These commands can take a few minutes to complete depending on your hardware.



Following this we can now run the System file checker to properly check windows with the knowledge that our database won't transfer any issues across.


3. Run System File Checker:To do this we now need to run the command.

sfc /scannow



Once this command has been executed windows will do the cross referencing and replace any files found to have corruption which will correct stability of the system and potentially any issues that are on-going.