How to Run SFC and DISM in Windows 11

This guide explains how to use the built-in Deployment Image Servicing and Management (DISM) and System File Checker (SFC) command-line tools in Windows 11. Running these utilities allows you to scan for, identify, and automatically repair corrupted or missing system files to resolve operating system crashes, performance drops, and instability.

Step 1: Open Command Prompt as Administrator

To execute system repairs, you must run the command line with elevated administrative privileges.

  1. Press the Windows Key + S to open the search bar.
  2. Type cmd or Command Prompt.
  3. Right-click on Command Prompt in the search results and select Run as administrator (or click Run as administrator in the right pane).
  4. Click Yes when prompted by User Account Control (UAC).

Step 2: Run the DISM Tool

It is recommended to run DISM before SFC. DISM checks and repairs the Windows Component Store image, ensuring that SFC has a healthy source to pull replacement files from.

In the elevated Command Prompt, type the following command and press Enter:

DISM /Online /Cleanup-Image /RestoreHealth

Step 3: Run the System File Checker (SFC)

Once the DISM scan finishes successfully, proceed with the SFC scan to repair protected Windows system files.

In the same Command Prompt window, type the following command and press Enter:

sfc /scannow

Step 4: Review the SFC Results

When the verification phase reaches 100%, you will see one of the following output messages:


Step 5: Restart Your Computer

After both the DISM and SFC operations have completed, close the Command Prompt window and restart your Windows 11 PC to ensure all repaired files and updates take effect properly.