Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
Some article numbers may have changed. If this isn't what you're looking for, try searching all articles. Search articles

如何在Windows中运行系统文件检查器

Summary: 如何使用系统文件检查器 (SFC) 命令“sfc /scannow”扫描和修复 Windows 中的系统文件。系统文件检查器 (SFC) 可帮助修复导致引导相关问题的损坏文件。

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 系统文件检查器 (SFC) 是所有现代版本的 Windows 中都内置的工具。此工具允许您修复 Windows 中损坏的系统文件。可以使用管理员权限从 Windows 中和使用 Windows 恢复介质运行系统文件检查器 (SFC)。

提醒:如果系统文件检查器 (SFC) 无法修复损坏的 Windows 系统文件,则 Windows 的全新安装可能是下一个选项。

了解有关如何使用系统文件检查器工具修复丢失或损坏的系统文件的更多信息 此超链接会将您带往 Dell Technologies 之外的网站。


如何以管理员身份从 Windows 中运行系统文件检查器 (SFC):

Windows 10 和 Windows 11

  1. 在桌面上,按 Windows + X 快捷键组合键。
  2. 在菜单中,选择命令提示符(管理员)
    提醒:系统文件检查器 (SFC) 可以从 Windows PowerShell(管理员)运行。
  3. 在用户帐户控制 (UAC) 提示中,单击
  4. 在命令提示符窗口中,键入 SFC /scannow ,然后按 Enter 键
  5. 系统文件检查器 (SFC) 实用程序检查 Windows 系统文件的完整性,并在需要时修复它们。
  6. 在该过程完成后,重新启动计算机。

返回页首


如何使用 Windows 恢复介质运行系统文件检查器 (SFC)

Windows 10 和 Windows 11

  1. 使用 Dell OS Recovery 工具创建 Windows 安装磁盘
  2. 将 USB 安装磁盘连接到计算机。
  3. 打开计算机并按 F12 键,直到进入 一次性启动菜单
  4. 从列表中选择 USB 驱动器,然后按 Enter 键
  5. 计算机使用 USB 安装磁盘启动。
  6. 选择您的语言,然后单击下一步
  7. 选择修复计算机选项。
  8. 单击故障处理,然后单击高级选项
  9. 从列表中选择命令提示符
  10. 键入 sfc /scannow /offbootdir=c:\ /offwindir=c:\windows ,然后按 Enter 键
  11. 系统文件检查器 (SFC) 实用程序检查 Windows 系统文件的完整性,并在需要时修复它们。
  12. 在该过程完成后,重新启动计算机。
提醒:此过程最多可能需要一个小时才能完成,具体取决于计算机的配置。

返回页首


修饰符

使用 /scannow 修饰符的基本系统文件检查器 (SFC) 扫描可解决大多数问题。但是,还可以使用其他修饰符。

修饰符函数

  • /scannow — 扫描所有系统文件并替换损坏或错误的文件。
  • /scanonce — 一次扫描所有系统文件。
  • /scanboot — 每次系统重新启动时在启动阶段扫描所有系统文件。
  • /cancel — 取消所有挂起的扫描(例如“/scanboot”修饰符)。
  • /enable — 启用 Windows 文件保护 (WFP),防止程序修改 Windows 系统文件。

可能的结果

您可能会收到四条可能的完成消息:

  • Windows Resource Protection did not find any integrity violations.(Windows 资源保护未发现任何完整性冲突。)
  • Windows Resource Protection found corrupt files and successfully repaired them.(Windows 资源保护发现损坏的文件并成功将其修复。)详细信息在 CBS.log 中: %inDir%\logs\cbs\cbs.log
  • Windows Resource Protection found corrupt files but was unable to fix some of them.(Windows 资源保护发现损坏的文件,但无法修复其中的某些文件。)详细信息在 CBS.log 中: %Windir%\logs\cbs\cbs.log
  • Windows Resource Protection could not perform the requested operation.(Windows 资源保护无法执行请求的操作。)

返回页首


将系统文件检查器 (SFC) /scannow 命令定向到 Windows

通过以下步骤,您可以启动至 Windows 修复磁盘,然后在指定的相应驱动器上运行系统文件检查器 (SFC) /scannow 命令。

  1. 引导至 Windows 计算机修复盘。
  2. 当计算机停在包含语言和输入选项的屏幕时,请确保您选择了正确的选项(对于基于美国的系统,英语、英语(美国)和美国),然后单击 OK
  3. “Install Now ”屏幕中,单击左下角的 Repair Your Computer 。如果出现提示,请按 任意键 继续。
  4. 选择键盘输入法(美国),单击 下一步
  5. 在“系统恢复选项”屏幕上,单击第一个选项“ 使用恢复工具...”,然后单击 “下一步”。
  6. 然后选择命令提示符超链接。
  7. 键入以下命令: sfc /scannow /offbootdir=d: /offwindir=d:\windows ,然后按 Enter 键 以执行该命令。
提醒:这假定 D:驱动器是适用于 Windows 的正确驱动器,它可能与您计算机上的不同。

返回页首

Additional Information

Affected Products

Alienware, Inspiron, OptiPlex, Vostro, XPS, G Series, G Series, Alienware, Inspiron, Latitude, Vostro, XPS, Fixed Workstations, Mobile Workstations
Article Properties
Article Number: 000126064
Article Type: How To
Last Modified: 15 Oct 2024
Version:  12
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.