How can I run DISM agaisnt a USB Windows installer to repair my local Windows files?

This is what I tried in Windows 8.1:

DISM /Online /Cleanup-Image /RestoreHealth

It returns error 0x800f081f:

enter image description here

Note that my WinSxS folder has several folders and sizes 6.88 GB, however DISM won't detect it.

I understand that a healthy source can be a Windows USB Installer.

How can I do this?

  • /restorehealth is not about detecting %WinDir%\WinSxS, but about verifying the system file backups within it against known good sources, preferably via Windows Update (which is why this requires an internet connection), or as a last resort, an install.wim/install.esd. The Component Store [WinSxS] should never be entered into or modified by a user. Once DISM has verified there's no corruption in WinSxS, SFC can then be utilized to compare the system files within %WinDir% against the known good copies contained within the Component Store [WinSxS] and replace them as necessary.
    – JW0914
    Commented Dec 28, 2019 at 6:01

1 Answer 1


You can point to the WIM file of the Windows 8.1 RTM DVD:

Dism /Online /Cleanup-Image /RestoreHealth /source:wim:D:\sources\install.wim:1 /limitaccess

(where D: is your Windows DVD drive or mounted Win8.1 ISO)

  • Thank you, the Windows 8.1 RTM DVD released in December did include the necessary install.wim.
    – Gabriel
    Commented Jan 29, 2015 at 16:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .