Question

Difficulty: MediumMicrosoft Command-Line Tools

A technician is troubleshooting a Windows workstation experiencing system instability due to corrupted system files. Diagnostic logs indicate that the underlying component store itself may also be corrupted. In what order should the technician perform the following operational steps to diagnose, repair the component store, restore corrupted system files, and complete the remediation process?

  1. 1Run dism /online /cleanup-image /scanhealth to verify whether component store corruption exists.
  2. 2Run dism /online /cleanup-image /restorehealth to repair the Windows component store image.
  3. 3Run sfc /scannow to scan and replace corrupted protected system files.
  4. 4Reboot the workstation to complete the replacement of any pending or locked system files.

Answer

The correct order is: 1) Run dism /online /cleanup-image /scanhealth to check component store health, 2) Run dism /online /cleanup-image /restorehealth to repair the component store, 3) Run sfc /scannow to repair protected system files, and 4) Reboot the workstation to apply pending file changes.
When both the Windows component store and core system files are corrupted, DISM must be used to repair the store before SFC can effectively fix system files. Scanning component store health identifies corruption, restoring health repairs the component store payload, running SFC scan replaces damaged system files using the restored store, and rebooting the machine completes the update for files locked during runtime.

Step-by-Step Solution

1
Execute dism /online /cleanup-image /scanhealth
Checks the Windows component store for corruption and reports whether repairs are needed.
Scanning health establishes whether the component store image is damaged prior to attempting remediation.
2
Execute dism /online /cleanup-image /restorehealth
Downloads clean payload files to repair the local Windows Component Store image.
System File Checker requires a healthy Component Store to pull clean files when fixing operating system corruption.
3
Execute sfc /scannow
Scans protected system files and replaces corrupted files with clean copies from the restored component store.
Running SFC after DISM guarantees that SFC utilizes a verified, healthy source repository.
4
Restart the workstation
Applies file replacements for system binaries that were locked by active processes.
A system reboot is necessary to complete replacing locked operating system files.

Key Concept

Windows Command-Line System Repair Sequence (DISM and SFC)
Rate this question