Soru

Zorluk: Çok zorMicrosoft Command-Line Tools

A Windows 11 workstation fails to boot following a forced shutdown during a cumulative update installation. An IT technician accesses the Command Prompt within the Windows Recovery Environment (WinRE) to remediate corrupted system files and restore normal startup. Order the following administrative command-line steps sequentially to execute a complete offline repair workflow.

  1. 1Run diskpart and list volume to confirm the dynamic drive letter assigned to the offline Windows system partition within WinRE.
  2. 2Execute dism /image:D:\ /cleanup-image /revertpendingactions to remove interrupted update operations blocking system servicing.
  3. 3Run dism /image:D:\ /cleanup-image /restorehealth /source:E:\sources\install.wim to repair the offline Component Store (SxS) using external media.
  4. 4Execute sfc /scannow /offbootdir=D:\ /offwindir=D:\windows to replace corrupt protected system files against the restored store.
  5. 5Run bootrec /rebuildbcd to scan for installed Windows installations and regenerate the Boot Configuration Data store.

Cevap

The correct sequence begins with using Diskpart to identify target partition letters, followed by reverting pending update operations via DISM, repairing the offline Component Store from install media, running System File Checker with offline parameters, and finally rebuilding the Boot Configuration Data using Bootrec.
The sequence follows the standard Windows offline servicing protocol: First, Diskpart confirms actual volume assignments in WinRE. Second, DISM reverts pending update states that block file access. Third, DISM restores the offline Component Store using clean installation media. Fourth, SFC scans and replaces corrupted OS files against the validated Component Store using offline path parameters. Fifth, Bootrec rebuilds the Boot Configuration Data to ensure proper boot sequence execution.

Adım Adım Çözüm

1
Identify volume mappings in WinRE
Discovered offline Windows OS directory located on drive D:\ and installation ISO mounted on drive E:\.
WinRE assigns drive letters dynamically; verifying directory paths is necessary before executing targeted offline commands.
2
Clear pending update locks
Pending update flags and locked servicing transactions are reverted.
Interrupted updates lock component store binaries, preventing repair tools from modifying damaged system files.
3
Repair offline Component Store (WinSxS)
The local component store image is restored to a healthy state using install.wim as a reference source.
System File Checker relies on a valid component store payload to replace corrupted system binaries.
4
Perform offline System File Checker scan
Corrupted Windows system files on drive D:\ are repaired.
Running SFC offline requires explicit /offbootdir and /offwindir switches pointing to the target Windows OS directory.
5
Rebuild boot loader entries
The Boot Configuration Data (BCD) store is updated to point to the operational OS installation.
Ensures the bootloader recognizes the repaired OS and boots into the desktop successfully.

Anahtar Kavram

Offline Windows Recovery Workflow using DISM, SFC, Diskpart, and Bootrec
Bu soruyu puanla