當系統檔案受損導致無法進入 Windows,仍可透過安裝媒體 (ISO/USB/DVD) 進入 WinRE 環境,使用 sfc /scannow /offbootdir /offwindir 參數進行離線修復。本文完整記錄從開機媒體進入命令提示字元、確認磁碟代號、執行離線掃描、單一檔案修復的操作流程。
diskpart → list volume 確認系統磁碟代號 (WinRE 下通常 C: 變 D:)。sfc /scannow /offbootdir=D:\ /offwindir=D:\Windowsoffbootdir 為系統分區,offwindir 為 Windows 目錄)


若僅需修復特定檔案 (如 zipfldr.dll):
sfc /scanfile=D:\Windows\System32\zipfldr.dll /offbootdir=D:\ /offwindir=D:\Windows
sfc /scannow 會報錯「程序被占用」,必須加離線參數。diskpart 實際查看為準,勿假設固定為 D:。DISM /Image:D:\ /Cleanup-Image /RestoreHealth (需掛載 install.wim)。