如何修复 sfc /scannow 发现的损坏文件?“Windows 资源保护发现损坏的文件,但无法修复其中一些文件。”

如何修复 sfc /scannow 发现的损坏文件?“Windows 资源保护发现损坏的文件,但无法修复其中一些文件。”

Windows 7的,运行后chkdsk C: /F /R发现我的硬盘有 24 KB 的坏扇区(日志发布在下面),我决定运行 Windows 7 的系统文件检查器实用程序(sfc /scannow)。

运行后,SFC 显示 ff. 消息:“Windows 资源保护发现损坏的文件,但无法修复其中的一些文件。详细信息包含在 CBS.Log windir\Logs\CBS\CBS.log 中。

由于 CBS.log 文件太大,我运行了findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"(按照 Microsoft 的知识库 928228文章)仅获取与损坏文件有关的日志文本。(日志也发布在下面)

我该如何排除故障并修复所提到的损坏的文件sfc /scannow

我的操作系统是Windows 7的,64 位。


chkdsk日志

sfc /scannow 日志

(通过findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"

笔记:完整日志位于http://pastebin.com/raw.php?i=gTEGZmWj。我在下面只引用了完整日志的部分内容(大部分来自最后一部分),因为完整日志不符合问题的字符限制。我将其添加为预览。

...
2013-12-28 19:37:50, Info  CSI00000542 [SR] Beginning Verify and Repair transaction
2013-12-28 19:37:55, Info  CSI00000544 [SR] Verify complete
2013-12-28 19:37:56, Info  CSI00000545 [SR] Verifying 95 (0x000000000000005f) components
2013-12-28 19:37:56, Info  CSI00000546 [SR] Beginning Verify and Repair transaction
2013-12-28 19:38:03, Info  CSI00000548 [SR] Verify complete
2013-12-28 19:38:03, Info  CSI00000549 [SR] Repairing 43 (0x000000000000002b) components
2013-12-28 19:38:03, Info  CSI0000054a [SR] Beginning Verify and Repair transaction

...
  
2013-12-28 19:38:15, Info  CSI0000075d [SR] Could not reproject corrupted file [ml:520{260},l:84{42}]"\??\C:\Windows\System32\migwiz\dlmanifests"\[l:38{19}]"IasMigPlugin-DL.man"; source file in store is also corrupted
2013-12-28 19:38:15, Info  CSI00000760 [SR] Could not reproject corrupted file [ml:520{260},l:84{42}]"\??\C:\Windows\System32\migwiz\dlmanifests"\[l:50{25}]"International-Core-DL.man"; source file in store is also corrupted
2013-12-28 19:38:16, Info  CSI00000762 [SR] Cannot repair member file [l:24{12}]"wbemdisp.dll" of Microsoft-Windows-WMI-Scripting, Version = 6.1.7600.16385, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
2013-12-28 19:38:16, Info  CSI00000763 [SR] This component was referenced by [l:202{101}]"Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~6.1.7601.17514.WindowsFoundationDelivery"
2013-12-28 19:38:16, Info  CSI00000766 [SR] Could not reproject corrupted file [ml:58{29},l:56{28}]"\??\C:\Windows\SysWOW64\wbem"\[l:24{12}]"wbemdisp.dll"; source file in store is also corrupted
2013-12-28 19:38:16, Info  CSI00000768 [SR] Cannot repair member file [l:56{28}]"Microsoft.MediaCenter.UI.dll" of Microsoft.MediaCenter.UI, Version = 6.1.7601.17514, pA = PROCESSOR_ARCHITECTURE_MSIL (8), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
2013-12-28 19:38:16, Info  CSI00000769 [SR] This component was referenced by [l:176{88}]"Microsoft-Windows-MediaCenter-Package~31bf3856ad364e35~amd64~~6.1.7601.17514.MediaCenter"
2013-12-28 19:38:16, Info  CSI0000076c [SR] Could not reproject corrupted file [ml:520{260},l:40{20}]"\??\C:\Windows\ehome"\[l:56{28}]"Microsoft.MediaCenter.UI.dll"; source file in store is also corrupted
2013-12-28 19:38:16, Info  CSI0000076e [SR] Cannot repair member file [l:24{12}]"ReAgentc.exe" of Microsoft-Windows-WinRE-RecoveryTools, Version = 6.1.7601.17514, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
2013-12-28 19:38:16, Info  CSI0000076f [SR] This component was referenced by [l:202{101}]"Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~6.1.7601.17514.WindowsFoundationDelivery"
2013-12-28 19:38:16, Info  CSI00000772 [SR] Could not reproject corrupted file [ml:48{24},l:46{23}]"\??\C:\Windows\SysWOW64"\[l:24{12}]"ReAgentc.exe"; source file in store is also corrupted
2013-12-28 19:38:16, Info  CSI00000774 [SR] Cannot repair member file [l:82{41}]"System.Management.Automation.dll-Help.xml" of Microsoft-Windows-PowerShell-PreLoc.Resources, Version = 6.1.7600.16385, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture = [l:10{5}]"en-US", VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
2013-12-28 19:38:16, Info  CSI00000775 [SR] This component was referenced by [l:266{133}]"Microsoft-Windows-Client-Features-Package~31bf3856ad364e35~amd64~en-US~6.1.7601.17514.Microsoft-Windows-Client-Features-Language-Pack"
2013-12-28 19:38:16, Info  CSI00000778 [SR] Could not reproject corrupted file [ml:520{260},l:104{52}]"\??\C:\Windows\System32\WindowsPowerShell\v1.0\en-US"\[l:82{41}]"System.Management.Automation.dll-Help.xml"; source file in store is also corrupted
2013-12-28 19:38:16, Info  CSI0000077a [SR] Cannot repair member file [l:18{9}]"hlink.dll" of Microsoft-Windows-HLink, Version = 6.1.7600.16385, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
2013-12-28 19:38:16, Info  CSI0000077b [SR] This component was referenced by [l:202{101}]"Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~6.1.7601.17514.WindowsFoundationDelivery"
2013-12-28 19:38:16, Info  CSI0000077e [SR] Could not reproject corrupted file [ml:48{24},l:46{23}]"\??\C:\Windows\SysWOW64"\[l:18{9}]"hlink.dll"; source file in store is also corrupted
2013-12-28 19:38:16, Info  CSI00000780 [SR] Repair complete
2013-12-28 19:38:16, Info  CSI00000781 [SR] Committing transaction
2013-12-28 19:38:19, Info  CSI00000785 [SR] Verify and Repair Transaction completed. All files and registry keys listed in this transaction  have been successfully repaired

答案1

解决这个问题的唯一方法大量损坏的文件在 Windows 7 中进行修复安装/就地升级

  • 插入 Windows 7 DVD 或安装 Windows 7 ISO
  • setup.exe从 DVD/挂载的 ISO运行
  • 在设置过程中选择upgrade

在此处输入图片描述

这将修复 Windows 但保留程序。

2015 年,微软将 Windows 8 中的 DISM 命令移植到了 Windows 7 中,用于修复文件。看看是否可以安装更新 KB2966583,以管理员身份打开命令提示符并运行DISM /Online /Cleanup-Image /Scanhealth以尝试修复文件。但如果失败,请尝试就地升级。对于 Windows 7 来说,这仍然是确保其完全修复的最佳选择。

答案2

chkdsk C: /F /R从 Windows 安装 DVD运行,

  1. 从 Windows 7 DVD 启动。
  2. 选择“修复您的计算机”。
  3. 选择您的目标系统。
  4. 在恢复工具面板中,选择命令提示符。
  5. 跑步chkdsk <your target drive>/: /F /R

当您从安装 DVD 运行检查磁盘时,Windows 将尝试恢复损坏的文件并修复它们。

我已经尝试过并且每次都有效。

答案3

如果sfc /scannow不起作用,请在运行 Windows 8 时尝试此命令:

dism /Online /Cleanup-Image /RestoreHealth

或者如果您处于 Windows 8 DVD/USB 修复模式,则使用此命令:

Dism /Image:C:\ /Cleanup-Image /RestoreHealth

假设损坏的 Windows 8 位于分区 C: 上。

答案4

虽然可以通过升级来修复系统文件(如上所述),但您应该考虑是否真的想这样做。如果系统文件损坏是由坏扇区引起的,则您的硬盘很可能开始出现故障。您可能在一段时间内不会再遇到任何问题,但多久之后您才会遇到更多损坏?这次是系统文件,下次也许会是您的个人数据。我建议备份所有数据,购买新电脑或新硬盘,然后将数据恢复到其中。虽然更昂贵,但从长远来看更安全。

相关内容