

Note that the operation may appear stuck at times but this is no cause for concern as scanning should commence after a moment automatically. The scan takes longer to complete if corruption is found during the scan of the image. The /RestoreHealth parameter runs a scan for corruption and attempts to repair any issues that it finds automatically. DISM /Online /Cleanup-Image /RestoreHealth

The scan takes longer to complete and the findings of the scan are returned in the command prompt window. The command scans for component store corruption but does not correct any issues. Previous operations may have flagged the image as corrupt. The scan should not take longer than a second or two. The command checks the image for the corruption flag and returns its findings to you but does not run repair operations.
