How to run DISM against a local source?

9

5

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?

Gabriel

Posted 2015-01-29T00:16:11.100

Reputation: 2 271

/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 – 2019-12-28T06:01:54.000

Answers

18

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)

magicandre1981

Posted 2015-01-29T00:16:11.100

Reputation: 86 560

Thank you, the Windows 8.1 RTM DVD released in December did include the necessary install.wim. – Gabriel – 2015-01-29T16:41:53.070