Forum Discussion
Paul_Steel
Jun 20, 2026Copper Contributor
Unable to use RestoreHealth in DISM
Hi all, I had a windows update fail with 0x800f0831 which indicates corrup files. So I ran the DISM commands DISM /ONLINE /CLEANUP-IMAGE /SCANHEALTHD DISM /ONLINE /CLEANUP-IMAGE /CHECKHEALTH ...
QueenOfKeysReema
Jun 21, 2026Brass Contributor
Hi!
I’m happy to help — and since I’m a developer, I can guide you through the advanced DISM steps that usually fix this issue.
1) Make sure the WIM index matches your edition
For Windows 11 Pro, the index is usually 6, but not always.
Run:
dism /Get-WimInfo /WimFile:H:\sources\install.wim
2) Use the full source path
DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:H:\sources\install.wim:6 /LimitAccess
3) If it still fails, use the ESD instead of WIM
DISM /Online /Cleanup-Image /RestoreHealth /Source:esd:H:\sources\install.esd:6 /LimitAccess
4) Or repair using Windows Update directly
DISM /Online /Cleanup-Image /RestoreHealth /Source:RepairSource /LimitAccess
If you want, I can help you read the DISM log and find the exact missing component.