The Windows System File Checker (SFC) is a tool that is built into all modern versions of Windows. This tool allows you to repair corrupt system files in Windows. System File Checker (SFC) can be run with administrator privileges both from within Windows and using the Windows recovery media.
NOTE: If the System File Checker (SFC) cannot repair corrupt Windows system files, a clean installation of Windows may be the next option.
Learn more about how to Use the System File Checker Tool to Repair Missing or Corrupted System Files
How to Run System File Checker (SFC) from within Windows as an Administrator:
Windows 10 and Windows 11
- From the desktop, press the Windows + X shortcut key combination.
- In the menu, select Command Prompt (Admin).
NOTE: System File Checker (SFC) can be run from Windows PowerShell (Admin).
- On the User Account Control (UAC) prompt, click Yes.
- In the command prompt window, type
SFC /scannow
and press Enter.
- The System File Checker (SFC) utility checks the integrity of Windows system files and repairs them if required.
- After the process is complete, reboot the computer.
Back to top
How to Run System File Checker (SFC) Using the Windows Recovery Media
Windows 10 and Windows 11
- Create a Windows installation disk using the Dell OS Recovery tool.
- Connect the USB installation disk to the computer.
- Turn on the computer and tap the F12 key until you enter the One Time Boot Menu.
- Select the USB drive from the list and press Enter.
- The computer boots using the USB installation disk.
- Select your Language, and then click Next.
- Select the Repair your Computer option.
- Click Troubleshoot, and then Advanced Options.
- Select Command Prompt from the list.
- Type
sfc /scannow /offbootdir=c:\ /offwindir=c:\windows
and press Enter.
- The System File Checker (SFC) utility checks the integrity of Windows system files and repairs them if required.
- After the process is complete, reboot the computer.
NOTE: This process can take up to one hour to complete depending on the configuration of the computer.
Back to top
Modifiers
A basic System File Checker (SFC) scan using the /scannow modifier resolves most issues. However, there are other modifiers that can be used.
Modifier function
- /scannow - Scans all system files and replaces corrupted or incorrect files.
- /scanonce - Scans all system files at once.
- /scanboot - Scans all system files at boot each time the system is restarted.
- /cancel - Cancels any pending scans (such as the /scanboot modifier).
- /enable - Enables Windows File Protection (WFP), which prevents programs from modifying Windows system files.
Possible results
There are four possible completion messages that you can receive:
- Windows Resource Protection did not find any integrity violations.
- Windows Resource Protection found corrupt files and successfully repaired them. Details are in the CBS.log:
%inDir%\logs\cbs\cbs.log
- Windows Resource Protection found corrupt files but was unable to fix some of them. Details are in the CBS.log:
%Windir%\logs\cbs\cbs.log
- Windows Resource Protection could not perform the requested operation.
Back to top
Directing the System File Checker (SFC) /scannow Command to Windows
The following steps allow you to boot to a Windows Repair Disk then run the System File Checker (SFC) /scannow command on the appropriately assigned drive.
- Boot to your Windows computer repair disk.
- When the computer stops at a screen with language and input options, ensure that you have the correct options selected (English, English (United States) and US for USA-based systems) then click Ok.
- At the Install Now screen, click Repair Your Computer on the bottom left. If prompted, press Any Key to continue.
- Select Keyboard input method (US), click Next.
- On the System Recovery Options screen, click the first option, Use recover tools…, click Next.
- Then select the Command Prompt hyperlink.
- Type the following Command:
sfc /scannow /offbootdir=d: /offwindir=d:\windows
then press Enter to perform the command.
Note: This assumes that the D: Drive is the correct drive for Windows, it may be different on your computer.
Back to top
Recommended Articles
Here are some recommended articles related to this topic that might be of interest to you.