Skip to content
Windows

Fix a Slow or Unstable Windows PC with DISM and SFC

Open an elevated prompt, run DISM /Online /Cleanup-Image /RestoreHealth, then sfc /scannow, and restart. Together they repair the Windows image and the system files copied from it.

Tested on Windows 11 24H2, Windows 10 22H2

When Windows becomes slow, crashes or refuses to update, the cause is often quiet corruption of system files. Before installing a “PC optimiser”, use the two repair tools that ship with every copy of Windows: DISM (Deployment Image Servicing and Management) and SFC (System File Checker).

Before you start

  • An administrator account on the PC
  • An internet connection – DISM downloads clean files from Windows Update
  • 30–45 minutes, and your work saved

Step 1 – Open an elevated Command Prompt

  1. Open Start and type cmd.
  2. Right-click Command Prompt and choose Run as administrator.
  3. Confirm the window title reads Administrator: Command Prompt.

Step 2 – Repair the Windows image with DISM

SFC repairs files by copying them from the Windows component store. If that store is damaged, SFC can’t fix anything – so repair the store first.

Command Prompt (Administrator)
DISM /Online /Cleanup-Image /RestoreHealth
  • It usually takes 10–25 minutes.
  • Progress can sit at 20 %, 40 % or 62 % for a while – that is normal; don’t close the window.
  • Finish: The restore operation completed successfully.

Step 3 – Repair system files with SFC

Command Prompt (Administrator)
sfc /scannow
ResultWhat it means
Did not find any integrity violationsSystem files are healthy.
Found corrupt files and successfully repaired themFixed – restart the PC.
Found corrupt files but was unable to fix some of themRestart, run DISM again, then SFC once more. Details are in %windir%LogsCBSCBS.log.

Step 4 – Restart and check

Restart the PC so repaired files are loaded. If performance is still poor, the cause is probably elsewhere – startup apps, a failing disk or low memory.

Do it in the right order

DISM first, SFC second. Running SFC on a damaged component store just reports errors it cannot repair.

Generate the commands for you

The Windows Repair Command Generator builds the right sequence for crashes, update failures, network problems or disk errors – for Command Prompt or PowerShell.

Frequently asked questions

How often should I run DISM and SFC?

Only when something is wrong – after crashes, failed updates or strange errors. There is no benefit to running them on a healthy PC.

Can I use the PC while they run?

Yes, but it will be slower. Avoid installing software or updates at the same time.

Is it safe?

Yes. Both tools only replace protected Windows files with verified copies; your documents and apps are not touched.

Inder Kochar

Written by

Inder Kochar

Systems & Network Engineer – I write up the fixes I use with clients, tested on real systems. Stuck on something similar?

Keep reading

Ask a question or share your fix

Your email isn’t published. Comments are moderated – please keep them on topic.