When your Windows 11 PC suddenly becomes slow, freezes for no reason, crashes with a blue screen, or apps refuse to open, it usually indicates a problem with your system files, the Windows image, or the disk itself. However, Windows 11 includes built-in diagnostic and repair tools such as SFC, DISM, and CHKDSK to repair system files and disk errors.

  • SFC (System File Checker) – scans and repairs corrupted or missing system files.
  • DISM (Deployment Image Servicing and Management) – repairs the Windows system image/component store that SFC depends on.
  • CHKDSK (Check Disk) – checks your disk drive and file system for errors and bad sectors and can repair them.

All three are powerful command‑line tools, but they target different parts of your system and are used in different situations.

In this article, we’ll look at the differences among SFC, DISM, and CHKDSK in Windows 11, and how to use each tool to diagnose and repair common issues.

Use of SFC command  in Windows 11

The SFC (System File Checker) utility is a command-line tool that scans and repairs Windows system files. It checks for missing, corrupted, or modified system files and, when possible, replaces them with the correct versions from a cached copy stored on your PC. SFC is usually the first tool you should try when you suspect Windows 11 system files are damaged, for example, after crashes, blue screen errors, or failed updates.

Repair corrupted system files using sfc command

  • Press Windows key + S, type cmd. Right‑click Command Prompt and select Run as administrator. (Click Yes on the UAC prompt.)
  • Now type sfc /scannow and press the Enter key to execute the command.
  • This will start scanning protected system files and replace corrupted files with a cached copy stored in a compressed folder at %WinDir%\System32\dllcache.
  • The SFC scan process may take some time, between 5 to 30 minutes. Make sure you leave the Command Prompt window open until it’s complete.

SFC scan windows 11

Note: If you only want to scan but not repair corrupted system files, type:sfc /verifyonly

Once SFC has finished scanning, you’ll see one of three messages:

  • Windows Resource Protection did not find any integrity violations. This means that whatever’s causing your PC problems isn’t related to a system file.
  •  Windows Resource Protection found corrupt files and successfully repaired them. This should mean your problems have been resolved.
  • Windows Resource Protection found corrupt files but was unable to fix some of them. This means that system files are to blame, but SFC can’t replace them. Try running the tool again in Safe Mode. If you still get the same result, don’t despair: it’s time to use DISM /RestoreHealth, then run SFC again.

Use of DISM command on Windows 11

DISM (Deployment Image Servicing and Management) is a more advanced command‑line tool that can repair Windows system images. It is especially useful when SFC fails to repair corrupted system files.

DISM repairs the Windows component store (WinSxS), which stores files used for updates and system repairs. Once the component store is healthy, SFC can usually fix remaining file issues.

Note: DISM /RestoreHealth may require an active internet connection to download clean files from Microsoft’s servers, unless you use a local source.

Check Your Operating System Health Using DISM /RestoreHealth

  • Open Command Prompt as administrator.
  • Type the command DISM /Online /Cleanup-Image /RestoreHealth and press the enter key,
  • DISM will scan the Windows 11 system image and attempt to resolve issues by connecting to Windows Update and downloading the required files.

Again, this can take 10–15 minutes to a few hours, depending on your system, internet connection, and the level of corruption.

  • When DISM completes successfully, run sfc /scannow again to repair corrupted system files on your computer.
  • Restart your PC once the scan completes.

For a full explanation of /CheckHealth, /ScanHealth, /RestoreHealth, and using a local WIM/ESD source if Windows Update is broken, read:
What Is DISM /RestoreHealth in Windows 10 & 11? Complete Guide

Use of CHKDSK Command in Windows 11

CHKDSK (Check Disk) is a command‑line tool built into Windows. As the name suggests, it checks the integrity of the file system on a disk partition and can scan for and fix logical file system errors.

You can run CHKDSK to:

  • Detect and repair file system errors.
  • Scan for bad sectors (clusters of data that cannot be read) on a drive.
  • Help with issues like Windows 11 freezing, high disk usage, or frequent file corruption.

To prevent future errors and potential data loss, it’s worth running CHKDSK manually at least once a month as part of your PC maintenance routine.

Repair Disk Drive Errors Using CHKDSK Command

  • Press Windows key + S and type cmd, right-click on the command prompt, select Run as Administrator,
  • Now type the command chkdsk and press the Enter key to check the disk drive for errors.

This runs CHKDSK in read‑only mode; it scans the drive for errors but does not repair them.

  • To repair the errors present on the drive, you need to add additional parameters and ask chkdsk command to scan and repair the disk drive errors.

You can check all support parameters using the command chkdsk /? (refer image below)

To scan and repair the disk drive errors run the command chkdsk C: /f /r

  • C: is the drive letter where you want to perform the scan.
  • /f fixes errors on the drive.
  • /r locates bad sectors and recovers readable information (implies /f).

Note: /r can take a long time, especially on large HDDs. If you suspect a failing drive, back up your data first.

  • When you run the command, CHKDSK will prompt the drive in use and schedule the check drive on the next restart. Type Y and press the enter key.
  • Save and close all running programs, then restart your PC. CHKDSK will run before Windows 11 loads, scanning and repairing the drive.

Repair Disk Errors from File Explorer

If you prefer a graphical method:

  • Press the Windows key + E to open File Explorer, then click on This P.,
  • Then right-click the drive you want to check and select Properties.
  • Move to the Tools tab and then select Check in the Error-checking section.

If Windows determines that everything appears fine, it may say you don’t need to scan the drive. To run CHKDSK anyway, click Scan drive.

  • Windows will scan the drive for errors. This can take from a few minutes up to half an hour, depending on disk size and speed.
  • Once complete, CHKDSK will either tell you that no errors were found or show that errors were found and offer to fix them.

Overall, CHKDSK repairs errors on the hard drive, SFC analyzes your system files and replaces them with the correct versions, and DISM scans and patches faulty files in the Windows component store, enabling SFC to function correctly.

What If SFC, DISM and CHKDSK Don’t Fix the Problem?

If you’re still having trouble after running all three commands, it’s time to use other recovery options.

  • System Restore – Reverts system files, settings, and programs to a time when everything was working properly.
  • Reset this PC – Reinstalls Windows 11 with an option to keep or remove your personal files.
  • Hardware checks – If you suspect a bad drive or RAM, run manufacturer diagnostics or Windows Memory Diagnostic.

For a complete step‑by‑step repair workflow that combines SFC, DISM, CHKDSK, Windows Update, System Restore, and Reset this PC, follow our guide: How to Repair Corrupted System Files in Windows 10 and 11.

Frequently Asked Questions

What if the above commands didn’t fix the problem? 
If you are still having to trouble its time to utilize the system restore feature that reverts system files, settings, and programs to a time when they were working properly

What is the DISM command used for?
Deployment Image Servicing and Management (DISM) is a command-line tool that is used to service Windows images.

Should I run DISM or SFC First? 
It is recommended to run SFC first. Then, run “DISM /Online /Cleanup-image /RestoreHealth”.

What is a hard disk error?
This error message might indicate an issue with sectors, data, or physical disks on the hard drive

What causes hard disk failure?
There are several causes of hard drive failure, including power outages, media damage, system file corruption, overheating, and water damage.

With over 7 years of experience in the IT industry, I have experience in IT support, helpdesk, sysadmin, network admin, and cloud computing. Certified in Microsoft Technologies (MCTS and MCSA) and also Cisco Certified Professional in Routing and Switching.