Soru

Zorluk: ZorMicrosoft Command-Line Tools

A systems administrator is servicing a Windows 11 workstation where running `sfc /scannow` failed to repair corrupted system files because the local component store (WinSxS) is damaged. The computer has an active internet connection. Which command must the administrator run from an elevated Command Prompt to repair the local component store using Windows Update as the repair source before re-running `sfc /scannow`?

  1. dism /online /cleanup-image /restorehealthCevap
  2. B
    dism /online /cleanup-image /checkhealth
  3. C
    fsutil repair initiate C:
  4. D
    fsck -y /dev/sda1

Cevap

dism /online /cleanup-image /restorehealth
The command `dism /online /cleanup-image /restorehealth` uses Deployment Image Servicing and Management (DISM) to scan the active Windows installation for component store corruption and automatically repair it using Windows Update. Once the component store is repaired, `sfc /scannow` can successfully replace corrupt system files.

Adım Adım Çözüm

1
Identify why SFC failed
SFC failed because the underlying WinSxS component store from which SFC pulls replacement system files is corrupt.
Running SFC repeatedly will fail if its source repository of operational binaries is damaged.
2
Select the correct DISM repair command
Execute `dism /online /cleanup-image /restorehealth` in an elevated Command Prompt.
The /restorehealth switch instructs DISM to scan the online operating system image and automatically download healthy files from Windows Update to fix the WinSxS store.
3
Re-run SFC
Execute `sfc /scannow` after DISM completes successfully.
With a restored WinSxS component store, SFC can now successfully replace damaged system files.

Anahtar Kavram

Windows Component Store Servicing with DISM
Bu soruyu puanla