How to Scan and Repair Files Outside of Windows Boot Using SFC and DISM: Advanced Troubleshooting Guide

Last update: 26/06/2025
Author Isaac
  • Advanced use of SFC and DISM allows you to repair system files. Windows even when it doesn't start properly.
  • Running SFC and DISM offline requires recovery media and specific parameters such as /offbootdir and /offwindir.
  • Detecting and troubleshooting common SFC errors such as 'Could not perform the requested operation' is possible by following a series of technical steps and additional recommendations.

search for files in Windows

Keeping system files in good condition is key to the stability and security of any Windows computer.However, it's not uncommon to encounter situations where the operating system stops booting properly or certain errors prevent the normal use of critical functions. When this happens, tools like SFC (System File Checker) and DISM (Deployment Image Servicing and Management) become our greatest allies, allowing us to analyze and restore the integrity of essential operating system files, even when Windows cannot be accessed normally.

If you have ever wondered how you can fix Windows when it won't even start or if there are effective methods to deal with error messages like 'Windows Resource Protection could not perform the requested operation', this article is for you.. Here I explain in maximum detail how to run SFC and DISM in offline mode, the key differences between the two, Tricks and professional advice for getting around the most persistent errors and recommendations for keeping your system up to date.

What is SFC and why is it so important for Windows?

sfc

SFC — System File Checker — is a tool built into Windows that is used to check and repair corrupted or altered system files.. Its main mission is to ensure that critical Windows files are maintained as designed, avoiding malfunctions, program crashes, and system errors. Boot or even serious security breaches.

When we run SFC, the system scans the protected system files one by one, comparing them with the original, trusted versions stored in a special cache. If it detects differences, SFC automatically replaces damaged, corrupted, or deleted files with their correct versions.. The most popular command is sfc /scannow, which performs a full scan and, if possible, repairs any faulty files without affecting the user's personal files. To perform this process under special conditions, you can also refer to the method Repair system files in Windows with DISM and SFC.

  Windows isn't releasing VRAM: real causes and working solutions

The use of this tool is especially useful to troubleshoot errors after failed updates, attacks malware, unexpected power outages or file system corruption. It may even be the recommended first step before attempting more drastic restorations or reinstallations.

DISM: What it is and how it complements SFC

Dism

DISM —Deployment Image Servicing and Management— is another advanced tool, integrated into Windows, aimed at repairing and maintaining system images.. While SFC focuses on checking the integrity of protected components file by file, DISM acts on the entire Windows image, allowing you to repair deeper damage or restore Windows components from external sources, including official installation media.

DISM is especially useful when SFC fails to fix a file because the recovery cache is also corrupted, or when standard repairs simply don't work. It offers several scan and repair options, such as /checkhealth, /scanhealth, and /restorehealth, each with different levels of depth and action.To learn how to use DISM in different scenarios, you can visit How to use DISM to repair Windows.

When you need to use SFC and DISM outside of Windows boot

Many times, system failures reach such a point that not even the Safe Mode allows for normal recovery. This is where the option to run SFC and DISM offline comes into play, i.e. booting from recovery media (USB, DVD or recovery drive) and using commands special to tell the system where to look for the Windows installation we want to repair.

Scanning and repairing files while the computer is off-boot—called “offline”—is essential when Windows won’t boot, is in a repair loop, there is significant file system corruption, or unrecoverable errors have occurred after a power outage, advanced malware, or update errors.To perform these tasks, you can also consult How to repair Windows when it won't boot.

How to create and boot from Windows recovery media

Before you can use SFC or DISM offline, You need to start your PC from a Windows recovery or installation media.You can easily create one from within the system on another healthy computer:

  • Use the Microsoft Media Creation Tool or choose the 'Create recovery drive' option in Windows.
  • Save the content to a USB or DVD and connect it to the faulty PC.
  • Start the computer and access the boot menu (usually with F12, F8, Esc or from the BIOS/UEFI settings, depending on the manufacturer).
  • Select the recovery media and when you see the options, choose 'Repair your computer', then 'Troubleshoot' and finally 'Symbol of the system'.
  The way to Get Climate Alerts on iPhone Lock Display screen

Running SFC offline: detailed command

Once you have access to the command prompt from the recovery environment, the key moment arrives:

  1. Identify the drive letter where your copy of Windows is installed. It is common for the recovery system to assign different letters to partitions (it will not always be C:). Use diskpart, then list volume y exit to see the list of volumes and their letter. Make sure you know which one corresponds to your Windows system.
  2. Run the SFC command in offline mode with the syntax:
    sfc /scannow /offbootdir=LetraUnidad:\ /offwindir=LetraUnidad:\Windows
    For example, if your installation is on D:, the command would be:
    sfc /scannow /offbootdir=D:\ /offwindir=D:\Windows
  3. Wait for the process to finishThis may take a while, depending on the number of files and the installation status. Don't close the window and follow the messages carefully.

This method tells SFC to work on the physical Windows installation located on the specified drive, even if the operating system itself has not booted conventionally.

How to interpret SFC results

Upon completion of the scan, SFC will display several messages, each with its own meaning and possible next steps:

  • “Windows Resource Protection did not find any integrity violations”: There is no corrupt files. Your system is well protected.
  • “Windows Resource Protection found corrupted files and successfully repaired them.”: Great result! The problematic files have been successfully restored.
  • “Windows Resource Protection found corrupted files and could not repair some of them.”: The files were detected, but automatic repair failed. This is the typical case in which you should use DISM.
  • “Windows Resource Protection could not perform the requested operation”: The scan was not completed. This could be due to disk errors, crashes, stopped services, or recovery cache issues.

Common errors and what to do if SFC /scannow fails

The process isn't always straightforward, and messages may appear that make repairs difficult. Some of the most common errors and their solutions are:

1. Windows Resource Protection could not start the repair service

This usually occurs when the TrustedInstaller service is disabled. Activate it manually from the services window (services.msc) or with the commands:

  • sc config trustedinstaller start= auto
  • net start trustedinstaller

Please retry SFC after starting the service.

  How to save a permanent WhatsApp video on iPhone

2. SFC could not perform the requested operation

This is usually a symptom of problems with the disk's logical structure. This can be resolved by running the following command:

  • chkdsk C: /r (replace C: with your corresponding drive)

Restart your PC to complete the disk check and try again.

3. SFC finds corrupt files that it cannot repair

When this happens, The next step is to run DISM to repair the Windows image. Additionally, it may be helpful to consult How to use Microsoft Dart to repair Windows for additional solutions.

  • Dism /Online /Cleanup-Image /RestoreHealth

This process requires an internet connection as it downloads original files from official Microsoft servers.

4. Pending system repair

Sometimes you see the message: "There is a pending system repair that requires a restart to complete." Follow these steps:

  • Restart your computer (more than once if necessary).
  • If the error persists, delete the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RebootPending using the Registry Editor (regedit).

After deletion, try the scan again with SFC.

How to Run DISM Deeply to Repair Windows Image

DISM is more powerful and thorough than SFC when it comes to dealing with extensive Windows image damage. The most useful commands are:

  • /checkhealth: Check for previously recorded damage.
  • /scanhealth: Scans the Windows image for corruption.
  • /restorehealth: Repairs the damaged image using original files.

If you have the original installation media, you can use it as a source by adding to the command /Source:D:\Sources\Install.wim (replace D: with your middle letter). For greater precision, you can consult repair hard drive in Windows and detect errors on your drive.

use Microsoft Dart-6
Related article:
How to Use Microsoft DaRT to Recover and Repair Windows