14

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
  • 3,020

2 Answers2

24

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)

Dave
  • 25,513
0

I'm sorry to disappoint everyone but that solution not worked for me.

The only way that worked was:

  1. Convert my iso in WIM

  2. mount my iso in virtual drive ex. E:\

  3. mount WIM in a folder ex. C:\test\offline with this command:

    DISM.exe /Mount-Wim /WimFile:e:\sources\install.wim /index:5 /MountDir:C:\test\offline /ReadOnly

Note: index 5 is the number of my windows version obtained with:

    dism /Get-WimInfo /WimFile:E:\sources\install.wim
  1. Issue this command:
    Dism /Image:C:\test\offline /Cleanup-Image /RestoreHealth /Source:c:\test\offline\windows

In the end this can be applied plainly to an USB storage support.