Last updated on November 17th, 2026 at 03:03 pm
To run an SFC scan in Windows 11, open Start, type Command Prompt, right-click it and choose Run as administrator. Run DISM.exe /Online /Cleanup-image /Restorehealth first, then type sfc /scannow, press Enter and leave the window open until verification reaches 100%.
Applies to: Windows 11 (the same commands are documented for Windows 10).
What an SFC scan does
SFC stands for System File Checker. It is a command-line tool built into Windows that checks the integrity of all protected system files and replaces damaged or incorrect versions with a correct cached copy. It is worth running when Windows features stop working properly, when you see system errors, or when Windows freezes or becomes unresponsive.
SFC only deals with protected Windows system files. It is not a tool for repairing a damaged document, photo or app, and it cannot fix problems caused by failing hardware or a faulty driver. When only one feature is acting up, such as printing or Bluetooth, it’s often quicker to run the matching troubleshooter in Windows 11 before a full system file scan.
Does an SFC scan delete my personal files?
SFC checks and replaces protected Windows system files. It is not documented as changing documents, pictures or other personal files.
Admin account and internet
- Use an administrator account. You must be signed in as a member of the Administrators group to run SFC.
- Stay connected to the internet for the first command. DISM uses Windows Update as the source for any files it needs.
- Save your work. Each command can take several minutes, and you may need to restart afterward.
Run an SFC scan in Windows 11
The current repair method uses two commands in order. The first one, DISM (Deployment Image Servicing and Management), repairs the Windows image that SFC draws its replacement files from. The second one is the SFC scan itself.
- Select Start and type Command Prompt (typing cmd also works). Command Prompt appears in the search results.
- Right-click Command Prompt and select Run as administrator. If Windows asks for an administrator password or for confirmation, type the password or select Yes. A Command Prompt window opens with administrator rights.
- Type DISM.exe /Online /Cleanup-image /Restorehealth and press Enter. Note the space before each forward slash. This operation may take several minutes, so wait until the prompt returns.
- Type sfc /scannow and press Enter. There is one space between sfc and the slash. The scan starts and shows its progress as a percentage.
- Do not close the Command Prompt window until verification is 100% complete. When it finishes, SFC prints one of four result messages, explained below.
- If SFC reports that it repaired files, restart the PC and check whether the original problem is gone.

How long does an SFC scan take?
Each command may take several minutes. The time depends on the PC, so wait for the 100% message instead of assuming the scan has stalled.
Another way to open an administrator window
You can run the same two commands in Windows Terminal. To open it, press the Windows key + X and select Windows Terminal (Admin). The entry may be worded slightly differently on your PC, but it is the one marked as Admin. Then follow steps 3 to 6 above. Readers on Windows 11 version 24H2 or later can skip the admin window and run sudo sfc /scannow after they enable the sudo command. If Terminal opens when you wanted the classic window, opening Command Prompt in Windows 11 explains the difference and how to get Command Prompt directly. If the problem looks like a disk error rather than damaged system files, run CHKDSK in Windows 11 as well.
What the SFC results mean
The scan ends with one of four possible messages.
| Message | What it means | What to do next |
|---|---|---|
| Windows Resource Protection did not find any integrity violations. | No protected system files are missing or corrupted. | Nothing to repair. Look for another cause of the problem. |
| Windows Resource Protection could not perform the requested operation. | The scan could not run. | Run the scan again in safe mode. |
| Windows Resource Protection found corrupt files and successfully repaired them. | The damaged files were replaced. | Restart and test. The details are in the CBS log. |
| Windows Resource Protection found corrupt files but was unable to fix some of them. | Some files are still damaged. | Read the log to see which files, then repair them manually or use a Windows recovery option. |
Where is the SFC log file?
It is part of %windir%\Logs\CBS\CBS.log. Use the findstr command in the log section above to pull the SFC lines into a readable text file.
If the scan comes back clean but the problem continues, the cause is probably not a system file. The next place to look is fixing corrupted files in Windows 11. When SFC and DISM can’t repair the damage, the next step is to reinstall Windows 11 while keeping your files and apps with Reinstall now in Settings. If the problem is repeated crashes, the crash logs on Windows 11 can show what failed before you go that far.
How to read the SFC log
SFC writes its details to a shared log file at %windir%\Logs\CBS\CBS.log, where %windir% is the Windows folder, typically C:\Windows. That file contains much more than SFC entries, so this command copies only the SFC lines into a text file on your desktop.
- Open Command Prompt as an administrator, as in the main steps.
- Type the following command and press Enter: findstr /c:”[SR]” %windir%\Logs\CBS\CBS.log >”%userprofile%\Desktop\sfcdetails.txt”
- Open the sfcdetails.txt file that appears on your desktop. Each line starts with a date and time.
The file includes entries from every time SFC has run on the PC, not only the latest scan. Check the date and time on each line so that you are reading the entries from the scan you just ran.
If SFC could not repair some files
Work through these options in order, from least to most disruptive.
- Run both commands again. If the DISM command did not finish successfully the first time, SFC may not have had good copies to restore from. Make sure the PC is online, run the DISM command, then run sfc /scannow again.
- Check the Windows image. Two DISM checks help here: Dism /Online /Cleanup-Image /ScanHealth scans the image for corruption, and Dism /Online /Cleanup-Image /CheckHealth reports whether the image is healthy, repairable or non-repairable.
- Replace a single file manually. This is an advanced procedure: find the damaged file in sfcdetails.txt, get a known good copy from another computer running the same version of Windows, take ownership with takeown /f, grant administrators access with icacls, and then copy the good file over the damaged one. This is easy to get wrong, so follow Microsoft’s System File Checker instructions exactly if you try it.
- Use a Windows recovery option. If the steps above do not help, turn to the Windows recovery options. Reset includes a Keep my files choice that keeps personal files such as documents and pictures but removes apps and settings, so back up first.
Do not download replacement system files from file-sharing or DLL download sites. A copy from an unknown source may be the wrong version or unsafe.
What happened to sfc /scanonce, /scanboot and /purgecache?
Those switches appear in Microsoft’s older Windows File Protection documentation, but they are not in the current sfc command reference for Windows 11. Use the options in the table above.
SFC that can’t run or won’t start
SFC says it could not perform the requested operation
Start the PC in safe mode and run the scan again; the restart steps are in getting into safe mode in Windows 11. Also make sure the PendingDeletes and PendingRenames folders exist under %WinDir%\WinSxS\Temp.
SFC will not start, or says you need to be an administrator
The window was opened without administrator rights. Close it, then open Command Prompt again with Run as administrator. A standard account on a home PC needs to get permission from an administrator in Windows 11 first. On a work or school PC your account may not be an administrator at all. In that case, ask your IT department to run the scan.
The DISM command fails or cannot find source files
DISM downloads repair files through Windows Update, so check your internet connection and try again. If Windows Update itself is broken, there is an alternative that points DISM at a working Windows installation or other repair source: DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess, where you replace C:\RepairSource\Windows with the location of your repair source. The /LimitAccess part stops DISM from using Windows Update.
Windows will not start at all
SFC can also scan a Windows installation that is not running. This is done from a Command Prompt in the Windows Recovery Environment (Windows RE), which starts automatically after two consecutive failed attempts to start Windows. You can also reach it by holding Shift while you select Restart on the sign-in screen, or by starting the PC from recovery media.
The command for an offline scan is SFC /Scannow /OffBootDir=C:\ /OffWinDir=C:\Windows. The drive letter for Windows is not always C: inside the recovery environment (the command reference shows an example that uses D:), so confirm which drive holds the Windows folder before you run it. If you suspect the drive itself is damaged, chkdsk /f /r checks for and repairs disk corruption.
Other SFC commands
These are the options for Windows 11, from the sfc command reference.
| Command | What it does |
|---|---|
| sfc /scannow | Scans all protected system files and repairs files with problems when possible. |
| sfc /verifyonly | Scans all protected system files without making repairs. |
| sfc /scanfile=<file> | Scans one file, given as a full path and file name, and tries to repair it. |
| sfc /verifyfile=<file> | Checks one file without repairing it. |
| /offbootdir and /offwindir | Point SFC at an offline boot directory and Windows directory for offline repair. |
For example, sfc /verifyfile=c:\windows\system32\kernel32.dll checks a single file. Use /verifyonly when you want to know whether anything is wrong before you let Windows change files.

Matt Jacobs writes and maintains the guides on Support Your Tech, which he started in 2017. He spent most of his career keeping small-business PCs running and still takes the occasional consulting job, so the steps here come from fixing the same problems on other people’s computers. Each guide follows Microsoft, Apple and Google’s own documentation and is updated when the steps change. Screenshots marked “Recreated” are illustrations of the real screens.