How To Run SFC And DISM In Windows 11 (2026)
SFC and DISM are two Windows tools that scan for and repair missing or corrupted system files.
Microsoft’s guidance is to run DISM first and System File Checker second, both from an elevated Command Prompt.
This guide gives the exact commands, what each result message means, and where to find the log.
Quick answer
| Step | What to do |
|---|---|
| 1 | Open Command Prompt as administrator |
| 2 | Run DISM.exe /Online /Cleanup-image /Restorehealth |
| 3 | When it says the operation completed successfully, run sfc /scannow |
| 4 | Wait for Verification 100% complete, then type exit |
When to use SFC and DISM
Microsoft lists Windows features not working, system errors and freezing as reasons to run these tools.
SFC scans protected system files and replaces corrupted ones with a cached copy.
DISM supplies the files SFC needs for those repairs, which is why DISM goes first.
Both tools can take several minutes, so start them when you do not need the PC.
Before you start
Microsoft’s page on using System File Checker says to install the latest Windows updates and restart the PC first.
If you are not sure the PC is current, see how to check for updates in Windows 11.
Run Command Prompt as administrator, because the commands may not work without it.
Open Command Prompt as administrator
- Type cmd or command prompt in the taskbar search box.
- Right-click Command Prompt in the results and select Run as administrator.
- If prompted, select Yes or Allow, or enter the administrator password.
Run DISM first
In the elevated window, type the command below and press Enter.
DISM.exe /Online /Cleanup-image /Restorehealth
Keep a space before each slash exactly as shown.
It can take a few minutes to start and finish.
Wait for the message “The operation completed successfully” before moving on.
Run System File Checker
In the same Command Prompt window, type the command below and press Enter.
sfc /scannow
Keep a space between sfc and the slash.
Do not close the window until the verification is 100 percent complete.
When you see “Verification 100% complete”, type exit and press Enter.
The two commands compared
| Command | What it does | Run it |
|---|---|---|
DISM.exe /Online /Cleanup-image /Restorehealth | Supplies the files SFC needs to make repairs | First |
sfc /scannow | Scans protected system files and replaces corrupted ones with a cached copy | Second, in the same window |
What the SFC messages mean
| Message | Meaning and next step |
|---|---|
| Windows Resource Protection did not find any integrity violations | No missing or corrupted system files were found |
| Windows Resource Protection could not perform the requested operation | Run the scan in safe mode, and confirm the PendingDeletes and PendingRenames folders exist under %WinDir%\WinSxS\Temp |
| Windows Resource Protection found corrupt files and successfully repaired them | The repair worked, and the log has the details if you want them |
| Windows Resource Protection found corrupt files but was unable to fix some of them | Find the file in the log and replace it manually |
For the safe mode message, our guide to starting Windows 11 in safe mode shows how to get there.
Rules that keep the scan from failing
- Run both commands in an elevated Command Prompt, because the commands may not work otherwise.
- Keep the spacing exactly as written, including the space before each slash.
- Run DISM before SFC, never the other way around.
- Leave the window open until SFC reports that verification is 100 percent complete.
- Install the latest Windows updates and restart the PC before you begin.
Microsoft’s article lists Windows 11 along with Windows 10, 8, 8.1 and 7, so the same commands apply across versions.
How to tell each step is done
| Tool | Message that means it finished |
|---|---|
| DISM | The operation completed successfully |
| SFC | Verification 100% complete |
Microsoft’s shorter page does not explain other DISM or SFC output, so use the result table above for the SFC messages.
Read the SFC log
SFC writes its activity to %windir%\Logs\CBS\CBS.log.
To copy the SFC entries to a readable file on your desktop, run this in the elevated Command Prompt.
findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"
The file contains entries from every SFC run, so check the date and time stamps to find the latest one.
An entry for a file that could not be repaired reads like “Cannot repair member file” followed by the file name and details.
Replace a file SFC could not repair
Use this only for files the log shows could not be repaired, and replace the placeholder with the file’s full path.
- Take ownership with
takeown /f <Path_And_File_Name>. - Give administrators full access with
icacls <Path_And_File_Name> /grant administrators:F. - Copy a known good version over it with
copy <Source_File> <Destination>.
Microsoft says a good copy can come from another computer running the same Windows version, after you run SFC there to confirm the file is healthy.
If Windows Update is broken
Microsoft gives an alternate DISM command that uses a repair source instead of Windows Update.
DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess
Replace the path with your source, such as a running Windows installation or a Windows side-by-side folder on a network share or removable media.
If the scans do not fix it
Microsoft says that if these steps fail, you may need to reinstall Windows.
Before that, you can reset Windows 11 and keep your files or go back to an earlier state with a restore point.
Microsoft’s article on recovery options points you to these tools when repair commands fail.
The reset and cloud rebuild options are under Settings > System > Recovery.
The same page lists point-in-time restore at System > Recovery > Point-in-time restore, and a way into the Windows Recovery Environment through Advanced startup and Restart now.
Try the least drastic option first, since a restore point or a reset can change more than a repair scan does.