Friday, September 16, 2022

SFC /scannow vs Dism /Online /Cleanup-Image /ScanHealth and the "The component store is repairable."

 So I was curious to find out what the difference between sfc and dism scan health and further more what the "The component store is repairable." means. I could not find a clear answer so I did some experiment.

Long story short "The component store is repairable." means there is a system integrity problem.

sfc/ scannow and dism /ScanHealth are not the same, better to run them both.


Here is what I did, I had a windows server that spend more than 1 hour to reboot after monthly patch got applied, so I did SFC scan and DISM scan. DISM scan showed  "The component store is repairable." and "The operation completed successfully."  <-- this is very misleading. It should be more clearly written like: "The operation completed with error: component store need repairs"  I almost ignored it.


Anyhow I ran both dism scan and sfc scan both found problems. After I fixed the issue now the system takes less time to reboot after a patch got applied.


C:\Windows\system32>sfc /scannow

Beginning system scan.  This process will take some time.

Beginning verification phase of system scan.

Verification 100% complete.

Windows Resource Protection found corrupt files and successfully repaired

them. Details are included in the CBS.Log windir\Logs\CBS\CBS.log. For

example C:\Windows\Logs\CBS\CBS.log. Note that logging is currently not

supported in offline servicing scenarios.


C:\Users\Administrator>Dism /Online /Cleanup-Image /ScanHealth

Deployment Image Servicing and Management tool

Version: 10.0.14393.4169


Image Version: 10.0.14393.4169


[==========================100.0%==========================] The component store is repairable.

The operation completed successfully.


C:\Users\Administrator>

C:\Users\Administrator>Dism /Online /Cleanup-Image /RestoreHealth /Source:WIM:D:\sources\install.wim:2 /LimitAccess


Deployment Image Servicing and Management tool

Version: 10.0.14393.4169


Image Version: 10.0.14393.4169


[==========================100.0%==========================] The restore operation completed successfully.

The operation completed successfully.


C:\Windows\system32>Dism /Online /Cleanup-Image /ScanHealth


Deployment Image Servicing and Management tool

Version: 10.0.14393.4169


Image Version: 10.0.14393.4169


[==========================100.0%==========================] No component store corruption detected.

The operation completed successfully.