Windows 8/8.1 and Windows Server 2012/2012 R2 have built in System Update Readiness Tool.
It is recommended to run to check System Files Corruption.
Applies To:
- Windows 8/8.1
- Windows Server 2012/2012 R2
Steps:
S1-1. Run Command Prompt in Administrator Mode
S1-2. To start scanning, execute
dism /Online /Cleanup-Image /ScanHealth
S1-3. If the result of the scan is the component store is repairable,
it means there is corruption occurred and it can be repairable by running /RestoreHealth
You can use /CheckHealth to check the repairable flag marked in registry
S1-4. To start repair, execute
dism /Online /Cleanup-Image /RestoreHealth
However, if /RestoreHealth is unable to repair and return Error 0x800f0906,
this means that DISM is not be able to repair unless the good WinSxS source is provided.
Once you have the WinSxS source required, you need to add /Source:<FilePath> to repair file corruption.
dism /Online /Cleanup-Image /RestoreHealth /Source:<FilePath>
In this case, the source is /Source:B:\ which is DVD drive where I copied the good WinSxS.
<
p style=”padding-left: 30px;”>The generation of WinSxS sources in ISO file, you can refer to this blog
Admin Scripts: Generate WinSxS Sources ISO for WinSxS Repair (Windows 8/8.1/Server 2012/2012 R2)
S1-5. To confirm, you can run ‘/CheckHealth’ to check the success of the repair.