Advanced Windows 11 Troubleshooting: How To Use DISM And SFC Commands
DISM and SFC are built-in Windows 11 repair tools that find and fix damaged or missing system files on your computer. When your PC freezes, slows down, or shows strange error messages, these two command-line tools scan your hard drive and replace broken files with fresh copies.
Running the Deployment Image Servicing and Management (DISM) and System File Checker (SFC) commands requires no technical skills or software downloads. Windows 11 includes both repair tools for free, and fixing your system takes just 5 minutes using the Command Prompt.
To use DISM and SFC commands for advanced Windows 11 troubleshooting, open the Command Prompt as an administrator by typing cmd in the Start menu search bar . Run the DISM health repair command first, then run the sfc /scannow command to automatically find and fix damaged system files.
Understanding Windows System Errors
Windows system errors happen when important files on your computer get damaged or deleted by bad updates, sudden power outages, or malware. These core files act like the building blocks of your operating system, and when they break, your computer may freeze, crash, or slow down significantly until you repair them using built-in diagnostic tools.
Common causes of file damage include:
- Sudden power outages or hard shutdowns
- Bad software installations or incomplete updates
- Failing storage drives
- Malware or virus attacks
When system files break, Windows 11 might display blue screens, freeze during startup, or refuse to open certain apps. Before you panic, you can use two built-in commands to scan and repair your system.
What Are DISM and SFC?
DISM and SFC are built-in Windows repair tools that work together to fix broken system files on your computer. DISM stands for Deployment Image Servicing and Management and fixes the core system image, while SFC stands for System File Checker and scans your active files to replace any corrupted pieces with healthy backup copies.
The System File Checker tool acts as your everyday repair specialist in Windows 11. The System File Checker tool scans your active operating system files, compares the active operating system files to the master backup store managed by the Deployment Image Servicing and Management tool, and replaces any damaged or missing files with healthy copies.
Always run DISM first, followed by SFC. This ensures your computer uses a healthy backup to fix your damaged files.
Preparing to Run System Repair Tools
Preparing to run system repair tools on Windows 11 requires you to close all open programs, save your work, and sign in to an administrator account. You need administrator rights to use commands like DISM and SFC because these tools make deep changes to core system files that standard user accounts cannot modify.
How to Open the Command Prompt as an Administrator
- Click the Start button on your taskbar.
- Type the word cmd into the search box.
- Right-click on Command Prompt in the search results.

- Select Run as administrator from the menu.
- Click Yes if a window pops up asking for your permission to make changes to your computer.
Opening the Command Prompt as an administrator in Windows 11 is easy when you use the taskbar search box. Click the Start button, type cmd, right-click on the Command Prompt result, and select Run as administrator to open the tool with the full system privileges required for running advanced repairs.
Step 1Run the DISM Tool
The DISM tool repairs the Windows system image. There are a few different ways to run DISM depending on what kind of check you want to perform. It is best to start with a quick health check before moving on to deeper repairs.
Check Health Option
This command quickly checks if your computer image has any obvious damage.
- Open the Command Prompt as an administrator.
- Type the following command carefully:
DISM.exe /Online /Cleanup-Image /CheckHealth - Press the Enter key on your keyboard.
- Wait for the process to reach 100 percent and read the results.
Scan Health Option
If the quick check finds nothing, but you still suspect a problem, use the deeper scan command.
- Open the Command Prompt as an administrator.
- Type the following command:
DISM.exe /Online /Cleanup-Image /ScanHealth - Press Enter and wait for the scan to finish. This takes a few minutes.
Restore Health Option
The restore health option in DISM is a powerful command that repairs damaged Windows component stores by downloading fresh files directly from Microsoft online servers. You should use this command when your system image is corrupted and standard repair tools fail to fix your computer errors.
- Open the Command Prompt as an administrator.
- Type the following command:
DISM.exe /Online /Cleanup-Image /RestoreHealth - Press Enter.
- Wait patiently. This process can take anywhere from 10 to 20 minutes depending on your internet and computer speed.
Step 2Run the System File Checker (SFC) Tool
Running the System File Checker tool involves opening the Command Prompt as an administrator and typing the sfc /scannow command. This tool scans all protected operating system files and replaces any broken or missing pieces with cached copies to restore your computer stability.
- Open the Command Prompt as an administrator.
- Type the following command:
sfc /scannow - Press Enter.
- Leave the window open and wait for the scan to reach 100 percent.
When the scan finishes, SFC will show you one of several messages:
- Windows Resource Protection did not find any integrity violations: Your computer has no damaged files.
- Windows Resource Protection found corrupt files and successfully repaired them: SFC found problems and fixed them automatically.
- Windows Resource Protection found corrupt files but was unable to fix some of them: You may need to run the tool again or use advanced recovery options.
- Windows Resource Protection could not start the repair service: You need to start the Windows Modules Installer service.
Advanced Troubleshooting: Offline DISM Repair Using an Install Image
Offline DISM repair using an install image lets you fix broken Windows system files without an internet connection by using a local Windows installation file or mounted ISO. This advanced method is helpful when your network blocks online servers or your computer cannot connect to the web.
- Insert your Windows 11 installation media, such as a USB flash drive, or mount an ISO file. Note the drive letter assigned to it, for example, letter D.
- Open the Command Prompt as an administrator.
- Type the following command, making sure to replace the drive letter with your actual media drive letter:
DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:WIM:D:\sources\install.wim:1 /LimitAccess - Press Enter and wait for the repair to complete.
How to View Details of the System File Checker Process
Viewing details of the System File Checker process requires you to copy the hidden CBS log file to your desktop using a simple Command Prompt command. This text file lets you see every specific file that SFC checked, changed, or failed to fix during the scan.
- Open the Command Prompt as an administrator.
- Type the following command to copy the SFC log to your desktop for easy reading:
findstr /c:"" %windir%\Logs\CBS\CBS.log > "%userprofile%\Desktop\sfclogs.txt" - Press Enter.
- Go to your computer desktop and double-click the new file named sfclogs.txt to open it in Notepad.
- Look through the text file to see which specific files were repaired or could not be fixed.
How to Manually Replace a Corrupted System File
Manually replacing a corrupted system file requires you to take ownership of the broken file in the Command Prompt and swap it with a healthy copy from another computer or installation media. You should use this advanced manual method only when the automated System File Checker cannot repair the file on its own.
- Open the Command Prompt as an administrator.
- Take ownership of the broken file by typing this command:
takeown /f C:\Windows\System32\example-file.dll(Replace example-file.dll with your actual broken file name). - Press Enter.
- Grant yourself full access to the file by typing:
icacls C:\Windows\System32\example-file.dll /grant USERNAME:F(Replace USERNAME with your actual user account name). - Press Enter.
- Copy the healthy replacement file over the broken file using the copy command or by pasting it through File Explorer.
Summary
Windows 11 includes powerful built-in tools like DISM and SFC that find and fix damaged system files without requiring a full operating system reinstallation. Using these commands in an administrative Command Prompt allows everyday users to scan system images, repair corrupt files, and restore computer health quickly.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!