Question

Difficulty: Very hardMicrosoft Command-Line Tools

A system administrator is resolving persistent system instability on a Windows 11 workstation. Running sfc /scannow fails with the error message: "Windows Resource Protection found corrupt files but was unable to fix some of them." Diagnostic logs indicate that the local Windows Component Store (WinSxS) is itself corrupted. Because network access to Windows Update is blocked by security policy, the administrator has mounted an official Windows 11 ISO file containing installation source files at drive letter D:. Which of the following commands must the administrator execute from an elevated Command Prompt to repair the local Component Store using the mounted image before re-running the System File Checker?

  1. dism /online /cleanup-image /restorehealth /source:D:\sources\install.wim /limitaccessAnswer
  2. B
    sfc /scannow /offbootdir=D:\ /offwindir=D:\windows /repairsource:install.wim
  3. C
    dism /online /cleanup-image /analyzecomponentstore /source:D:\sources\install.wim
  4. D
    rsync -avz /media/D/sources/install.wim /C/Windows/WinSxS/

Answer

The command dism /online /cleanup-image /restorehealth /source:D:\sources\install.wim /limitaccess must be executed to repair the corrupted Windows Component Store using the local WIM source without querying Windows Update.
The correct command utilizes DISM with the /online switch to target the active OS, /cleanup-image /restorehealth to repair corruption, /source:D:\sources\install.wim to point directly to the mounted installation image, and /limitaccess to prevent attempts to connect to Windows Update over a restricted network.

Step-by-Step Solution

1
Identify the cause of the SFC failure.
SFC failed because its payload source (the local WinSxS component store) is corrupted.
SFC replaces damaged system files using healthy copies stored in the Component Store (WinSxS). If WinSxS is corrupted, SFC cannot complete repairs.
2
Select the appropriate servicing tool for WinSxS component repair.
Deployment Image Servicing and Management (DISM) is required.
DISM repairs the Windows Component Store image itself using Windows Update or an explicit alternate repair source.
3
Construct the exact DISM syntax for an offline/local WIM source.
Use /online /cleanup-image /restorehealth with /source:D:\sources\install.wim and /limitaccess.
The /source switch specifies the mounted image location, and /limitaccess prevents DISM from attempting network connections to Windows Update.
4
Re-run System File Checker following DISM completion.
Execute sfc /scannow to fix remaining system file corruptions using the newly restored component store.
With a healthy component store restored, SFC can now successfully replace damaged OS binaries.

Key Concept

Repairing Windows Component Store corruption using DISM with alternate repair sources prior to SFC execution.
Rate this question