DISM /StartComponentCleanup 失败,但 /ScanHealth 报告健康

DISM /StartComponentCleanup 失败,但 /ScanHealth 报告健康

我的 WinSxS 清理任务给出的“上次运行结果”是The component store has been corrupted. (0x80073712)。没问题,提升命令提示符和 DISM。

>DISM /Online /Cleanup-Image /ScanHealth

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

[==========================100.0%==========================]
No component store corruption detected.
The operation completed successfully.

好的,太好了,可以开始清理了。

>DISM /Online /Cleanup-Image /StartComponentCleanup

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

[==========================100.0%==========================]

Error: 14098

The component store has been corrupted.

The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

奇怪,我们来解决这个问题。

>DISM /Online /Cleanup-Image /RestoreHealth

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

[==========================100.0%==========================]
The restore operation completed successfully. The component store corruption was repaired.
The operation completed successfully.

为了安全起见,我们重新扫描一下。

>DISM /Online /Cleanup-Image /ScanHealth

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

[==========================100.0%==========================]
No component store corruption detected.
The operation completed successfully.

然后清理

>DISM /Online /Cleanup-Image /StartComponentCleanup

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

[==========================100.0%==========================]

Error: 14098

The component store has been corrupted.

The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

我完全搞不懂。它怎么会在短时间内报告未损坏、已修复和损坏?

任何考虑关系的人这个问题sfc也没什么用。

>sfc /scannow

Beginning system scan.  This process will take some time.

Beginning verification phase of system scan.
Verification 100% complete.

Windows Resource Protection did not find any integrity violations.

TL;DR:我的 SxS 存储未损坏,已修复且损坏。同时。不确定如何修复。

答案1

原始海报通过重新启动解决了该问题 - 这dism /Online /Cleanup-Image /RestoreHealth确实是 Windows 8 及更新版本需要运行的命令。


在这种情况下,还有另一种工具可以提供帮助:CheckSUR,也称为系统更新准备工具。您可以下载它适用于 Windows 7 及之前版本KB947821

根据这篇微软博客文章,CheckSUR 通常可以修复组件存储中的损坏,但如果无法修复,仍然可以使用它来识别受影响的组件。CheckSUR 日志末尾附近是软件包列表;这些条目对应于 Windows 更新和 KB 文章。从中获取 MSUhttps://support.microsoft.com/kb/NUMBER-HERE并将其放在\Windows\CheckSur\packages您可能需要创建的文件夹中。对每个软件包执行此操作后,重新运行 CheckSUR。

请注意 CheckSUR可能需要一段时间才能完成

答案2

遇到了同样的问题。我的问题是防病毒冲突导致的

它是适用于 Microsoft Windows Server 的 ESET File Security v.6.3.12010.0

添加了 C:\Windows\WinSxS 的排除项

还添加了对进程 dism.exe 的排除


相关内容