PowerEdge:如何從 Windows Recovery Environment (WinRE) 執行 sfc/scannow

Summary: 在 Windows Server 的 Windows Recovery Environment 中執行系統檔案檢查程式的資訊

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

本文提供在 Windows Server 的 Windows 復原環境中執行系統檔案檢查程式 (sfc.exe) 的相關資訊。


 

嘗試在 Windows Recovery Environment (WinRE) 內執行系統檔案檢查程式 (sfc.exe) 時,您可能會收到下列錯誤:

Windows Resource Protection could not start the repair service.

以下螢幕擷取畫面會顯示錯誤 (圖 1 (僅限英文版)):

命令提示字元顯示 SFC/scanNow Windows 資源保護錯誤
圖 1:Windows 資源保護錯誤

在 WinRE 中執行 sfc /scannow 時,必須在命令中新增兩個交換器,才能在離線模式下執行:

  • /offbootdir=<disk> 指示啟動驅動器號。
  • /offwindir=<folder> 指出 Windows 所在的資料夾。

以下是新增這些開關的命令範例:

sfc /scannow /offbootdir=D:\ /offwindir=D:\Windows 
重要:兩個交換器中所需的磁碟機代號,都是 WinRE 中顯示的磁碟機代號。這通常與 Windows 執行時指派給相同磁碟分割的字母不同,因為 WinRE 列舉磁碟分割的方式不同。  

 

Affected Products

Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022

Products

PowerEdge FC640, PowerEdge M640, PowerEdge M640 (for PE VRTX), PowerEdge MX5016s, PowerEdge MX740C, PowerEdge MX750c, PowerEdge MX760c, PowerEdge MX840C, PowerEdge R240, PowerEdge R250, PowerEdge R260, PowerEdge R340, PowerEdge R350, PowerEdge R360 , PowerEdge R440, PowerEdge R450, PowerEdge R540, PowerEdge R550, PowerEdge R640, PowerEdge R6415, PowerEdge R650, PowerEdge R650xs, PowerEdge R6515, PowerEdge R6525, PowerEdge R660, PowerEdge R660xs, PowerEdge R6615, PowerEdge R6625, PowerEdge R740, PowerEdge R740XD, PowerEdge R740XD2, PowerEdge R7415, PowerEdge R7425, PowerEdge R750, PowerEdge R750XA, PowerEdge R750xs, PowerEdge R7515, PowerEdge R7525, PowerEdge R760, PowerEdge R760XA, PowerEdge R760xd2, PowerEdge R760xs, PowerEdge R7615, PowerEdge R7625, PowerEdge R840, PowerEdge R860, PowerEdge R940, PowerEdge R940xa, PowerEdge R960, PowerEdge T140, PowerEdge T160, PowerEdge T340, PowerEdge T350, PowerEdge T360, PowerEdge T440, PowerEdge T550, PowerEdge T560, PowerEdge T640, PowerEdge XE2420, PowerEdge XE7420, PowerEdge XE7440, PowerEdge XE8545 ...
Article Properties
Article Number: 000137221
Article Type: How To
Last Modified: 10 Mar 2025
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.