Many Windows problems are caused by damaged or missing system files. Damaged or missing system files may stem from malware, failed updates, botched installations, and more. System File Checker is a component of Windows which can automatically detect and fix or restore these files. To repair or restore your system files using System File Checker, follow these steps.

Part 1
Part 1 of 4:

Starting and Using System File Checker

  1. 1
    Open the Start menu. Click the Start button.
  2. 2
    Search for Command Prompt. Type cmd.exe.
    • Users of Windows XP must click All Programs then the Accessories subcategory.
    Advertisement
  3. 3
    Start Command Prompt as an administrator. Right click cmd.exe to open the context menu and click Run as administrator.
    • Users of Windows XP must hold the Shift key while right clicking Command Prompt, click Run As to open a dialog window, select the The following user radio button, type Administrator as the user name and the password of the account (usually blank), and click OK.
    • Click Yes on the User Account Control dialog if it appears.
  4. 4
    Start System File Checker. In Command Prompt, type sfc /scannow and press the Enter key on your keyboard.
  5. 5
    Wait until System File Checker finishes checking and fixing your system.
  6. Advertisement
Part 2
Part 2 of 4:

Starting and Using System File Checker Via Safe Mode

  1. 1
  2. 2
    Start System File Checker. In Command Prompt, type sfc /scannow and press the Enter key on your keyboard.
  3. 3
    Wait until System File Checker finishes checking and fixing your system.
  4. 4
    Shut down your computer by typing shutdown -t 0:00 into Command Prompt and pressing the Enter key on your keyboard.
  5. Advertisement
Part 3
Part 3 of 4:

If You Experience an Error While Trying to Start System File Checker

Start the Trusted Installer and Windows Module Installer Services

  1. 1
    Open the Start menu. Click the Start button.
  2. 2
    Search for Command Prompt. Type cmd.exe.
    • Users of Windows XP must click All Programs then the Accessories subcategory.
  3. 3
    Start Command Prompt as an administrator. Right click cmd.exe to open the context menu and click Run as administrator.
    • Users of Windows XP must hold the Shift key while right clicking Command Prompt, click Run As to open a dialog window, select the The following user radio button, type Administrator as the user name and the password of the account (usually blank), and click OK.
    • Click Yes on the User Account Control dialog if it appears.
  4. 4
    Start the Trusted Installer service. Type net start "trustedinstaller" into Command Prompt and press Enter.
  5. 5
    Start the Windows Modules Installer service. Type net start "windows modules installer" into Command Prompt and press Enter.
  6. 6
    Follow the Steps of Part 1.
  7. Advertisement

If Starting the Services Does Not Resolve the Error

Part 4
Part 4 of 4:

Interpreting the System File Checker Results

After System File Checker finishes checking your system for errors, it will present you with a message. The following are the messages and what they mean.

Windows Resource Protection did not find any integrity violations.

Windows Resource Protection could not perform the requested operation.

Windows Resource Protection found corrupt files and successfully repaired them. Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log.

Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log.

  • Problematic files were found, but System File Checker failed to repair some of them.
  • To fix the files automatically (may not always work):
    • Boot into Safe Mode.
    • Open Command Prompt as an administrator. Click the Start button, type cmd, right click the first search result, then click Run as administrator.
    • Type Dism /Online /Cleanup-Image /RestoreHealth and press Enter.
  • To fix the files manually (advanced):
    • Determine the files that need to be repaired.
      • Open the Start menu. Click the Start button.
      • Click All Programs in the Start menu.
      • Expand the Accessories folder in the Start menu.
      • Start Command Prompt. Click Command Prompt under the Accessories folder.
      • Type findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt" into Command Prompt and press the Enter key on your keyboard.
      • Double click the 'sfcdetails.txt file from your desktop to open Notepad.
      • Navigate through Notepad to look for any corrupted files which System File Checker failed to correct, and note the file names.
    • Find a working version of the file(s).
      • On another computer that is running the same edition of Windows as the computer you are trying to repair, locate the file that was not successfully repaired and copy it onto a removable drive.
      • Search for the file online if it is not available on another computer, and download it from a safe source.
        • Be sure to check the downloads for viruses before using them to repair the computer.
    • Take full control of the corrupted system file on the computer you are trying to repair.
      • On the computer that needs to be repaired, open the Start menu. Click the Start button.
      • Click All Programs in the Start menu.
      • Expand the Accessories folder in the Start menu.
      • Start Command Prompt as an administrator. Right click Command Prompt under the Accessories folder to open the context menu and click Run as administrator.
      • Click Yes on the User Account Control dialog.
      • Type takeown /f "<Path of File>" into Command Prompt and press Enter on your keyboard.
        • <Path of File> should be replaced with the path of the corrupted file that you want to replace. (E.G. Takeown /f "C:\Windows\System32\notepad.exe")
      • Type icacls "<Path of File>" /GRANT ADMINISTRATORS:F into Command Prompt and press Enter on your keyboard.
        • <Path of File> should be replaced with the path of the corrupted file that you want to replace. (E.G. icacls "C:\Windows\System32\notepad.exe" /GRANT ADMINISTRATORS:F)
    • Replace the corrupted file.
      • Open the Start menu. Click the Start button.
      • Click All Programs in the Start menu.
      • Expand the Accessories folder in the Start menu.
      • Start Command Prompt as an administrator. Right click Command Prompt under the Accessories folder to open the context menu and click Run as administrator.
      • Click Yes on the User Account Control dialog.
      • In Command Prompt, type Copy "<Good_File>" "<Bad_File>" and press Enter on your keyboard.
        • <Good_File> should be replaced with the path of the good copy of the file (depending on where you stored the good version of the problematic file).
        • <Bad_File> should be replaced with the path of the bad version of the file.
        • (E.G. Copy "F:\notepad.exe" "C:\Windows\System32\notepad.exe")

About This Article

Tested by:
wikiHow Technology Team
wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time. This article has been viewed 21,106 times.
How helpful is this?
Co-authors: 6
Updated: March 29, 2019
Views: 21,106
Advertisement