Question

Difficulty: MediumMicrosoft Command-Line Tools

A systems administrator is servicing a Windows workstation where system file corruption is suspected due to repeated application faults. The administrator needs to verify and repair the Windows Component Store image online, and then scan and repair all protected system files. Which of the following command-line tools and parameter combinations should the administrator run in an elevated Command Prompt to achieve these objectives? (Select TWO.)

  1. dism /online /cleanup-image /restorehealthAnswer
  2. sfc /scannowAnswer
  3. C
    chkdsk /f /r
  4. D
    systemctl repair-system

Answer

To repair the Windows Component Store image and restore protected system files from an elevated Command Prompt, the administrator must execute dism /online /cleanup-image /restorehealth and sfc /scannow.
Executing dism /online /cleanup-image /restorehealth repairs the Windows Component Store image online, while running sfc /scannow inspects and replaces corrupted system binaries using the validated component store.

Step-by-Step Solution

1
Repair the Windows Component Store image
The local component store is scanned for corruption and repaired using healthy files.
If the local component store is corrupt, SFC will fail to repair system files because its source files are compromised.
2
Scan and restore protected system files
Corrupted OS system files are identified and replaced using the healthy component store.
Executing sfc /scannow verifies system file integrity and replaces damaged binaries.

Key Concept

Windows OS System File Repair Utilities (DISM and SFC)
Rate this question