Windows Acting Up With Strange Errors? Repair Corrupted System Files With SFC and DISM (Windows 10 and 11)

If Windows Update keeps failing, you get the occasional blue screen, or built-in apps such as Settings and the Start menu keep freezing, some Windows system files may be corrupted. Try the two repair commands built into Windows, DISM and SFC, in this order. You don't need to install anything, and your own files are not deleted.
1. Open an administrator terminal
- Right-click the Start button and open Terminal (Admin) or Windows PowerShell (Admin). On Windows 10, "Command Prompt (Admin)" also works.
- Click "Yes" when User Account Control asks. Neither command runs without administrator rights.
2. First, repair the Windows source with DISM
- Type
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. - This step repairs the "source" that SFC uses to fix files. It downloads the files it needs, so your PC must be online.
- It takes about 10 to 20 minutes, and progress may look stuck at 20% or 62% for a while. Don't close the window; wait until it finishes.
- When you see "The restore operation completed successfully", move on to the next step.
3. Scan and repair system files with SFC
- Type
sfc /scannowand press Enter. The scan usually takes around 10 minutes. - "Windows Resource Protection did not find any integrity violations": your system files are fine. The problem is more likely a driver or a program.
- "Windows Resource Protection found corrupt files and successfully repaired them": just restart your PC.
- "Windows Resource Protection found corrupt files but was unable to fix some of them": run the DISM command from step 2 once more, then run
sfc /scannowagain. Details are logged in%windir%\Logs\CBS\CBS.log. - "Windows Resource Protection could not perform the requested operation": restart in Safe Mode and run the same command there.
4. If that still doesn't fix it
- On Windows 11, Settings → System → Recovery → "Fix problems using Windows Update" lets you Reinstall now: it reinstalls your current version of Windows while keeping your apps, files and settings.
- If you have a System Restore point from before the problem started, you can also roll back to it.
- Whatever you try, it is safest to back up important files first.
Sources: Microsoft Support – Use the System File Checker tool to repair missing or corrupted system files, Microsoft Learn – Repair a Windows image
Blog
- How to Fix a Slow or Not Responding File Explorer in Windows 11
- How to Check Your Windows Activation Status and Fix Error 0x80041008 After the November Update
- When Windows Security (Defender) Blocks a Safe Program: How to Restore Quarantined Files and Add Exclusions
- Screen Flickering or Going Black? Restart the Graphics Driver (Win+Ctrl+Shift+B) and Roll Back the Driver
- Windows Clock Keeps Showing the Wrong Time? How to Sync Time and Fix the Time Zone (Windows 10 and 11)
- Blurry or Fuzzy Text on Your Monitor? Tune ClearType and Change High-DPI Settings per App (Windows 11)
- Free Invites, First Come First Served: 1 Week of Claude Pro (3 People) and a Pickle Invite Link (5 People)
- Webcam Not Detected or Showing a Black Screen? Check Camera Privacy Settings, Drivers and Apps Using It (Windows 11)