Dism is unable to repair system files Solved

Page 1 of 2 12 LastLast
  1.    #1

    Dism is unable to repair system files


    I have a Kodlix mini computer with Windows 10 Pro purchased in mid February of 2019. It came with version 1803 installed. A few days after it arrived, Windows update installed version 1809. I recently noticed that the March and April cumulative updates failed to install, although everything else installed ok. See screen capture:

    Click image for larger version. 

Name:	Update History.JPG 
Views:	1 
Size:	100.4 KB 
ID:	230451

    I ran the Windows Update trouble shooter (No help), ran SFC /Scannow (no problems found) and tried:
    a) Stopped the BITS, Cryptographic, MSI Installer and the Windows Update Services.
    b) Renamed the SoftwareDistribution and Catroot2 folder.
    c) Restarted the BITS, Cryptographic, MSI Installer and the Windows Update Services.
    Which didn’t help.

    I then ran: DISM /Online /Cleanup-Image /RestoreHealth which failed at around 85% with error 2. The DISM log indicated that it couldn’t find a file.

    Then a ran DISM pointing to a usb install for 1809 using: E:\Sources\Install.esd as the source, which failed at around 85% with error 2.

    I then mounted an 1809 ISO and ran DISM again using this command: DISM /Online /Cleanup-Image /RestoreHealth /Source:F:\Sources\Install.wim. It failed at around 85% with error 2.


    Here is the DISM log for this last run:

    Dism Log of attempted repair using 1809 Mounted ISO.txt


    I down loaded and tried to manually install the update with these results:

    Click image for larger version. 

Name:	Manual update failed.JPG 
Views:	38 
Size:	27.6 KB 
ID:	230453


    I’m trying to fix this instead of reinstalling, hoping I will learn something in the process.

    Thanks in advance for any help solving this.
    Gary
      My ComputersSystem Spec

  2.    #2

    Hi, I would, as a matter of routine, given your DISM failure, from an admin command or Powershell prompt run
    chkdsk c: /scan

    If this fails, run
    chkdsk c: /f
    which will require a reboot as prompted.

    I would also check your disk. E.g.
    Hard Disk Sentinel (trial) - best textual report on GUI I know
    or
    HD Tune (health and error scan tabs) - free.

    If all is ok, try the tool in post #2:
    Windows 10 Recovery Tools - Bootable Rescue Disk - Windows 10 Forums

    or you could simply proceed to an in-place upgrade repair install which keeps all progs, data and most settings.
    (see Tutorial)

    For interest- to reset Windows Update - this does more than you did, and more conveniently:
    Reset Windows Update in Windows 10 | Tutorials
      My ComputersSystem Spec

  3.    #3

    dalchina said: View Post
    Hi, I would, as a matter of routine, given your DISM failure, from an admin command or Powershell prompt run
    chkdsk c: /scan
    [Reported errors]
    If this fails, run
    chkdsk c: /f
    which will require a reboot as prompted

    .[Ran chkdsk c:\spotfix and chkdsk c:\f. Both reported 100% complete, but I had to force reboot. Update failed.]
    I would also check your disk. E.g.
    Hard Disk Sentinel (trial) - best textual report on GUI I know
    or
    HD Tune (health and error scan tabs) - free.

    [HDTune reported 100% errors on surface scan. Mini-Tool, SeaTools and WD disk tool reported 0 errors on surface scan. GSmart Control and HDD Scan could not report any info on that drive, but could report on the spinner that is installed]

    If all is ok, try the tool in post #2:
    Windows 10 Recovery Tools - Bootable Rescue Disk - Windows 10 Forums

    [See above, Also ran ESET online scan, no threats found]

    or you could simply proceed to an in-place upgrade repair install which keeps all progs, data and most settings.
    (see Tutorial)

    [See link:
    Problems re-installing windows as a live upgrade ]
    For interest- to reset Windows Update - this does more than you did, and more conveniently:
    Reset Windows Update in Windows 10 | Tutorials
    Dalchina - thanks for all the input. About the only repair suggested that I haven't tried is resetting windows update. I won't be able to get to that until Sunday. I'm also going to post this info on the mfgr's forum. This box supports installation of an SSD card as well as the spinner I've already added. I may have to install an SSD card and install windows on that or try clean installing on the built in memory drive.
      My ComputersSystem Spec


  4. Posts : 25,055
    windows 10 professional version 1607 build 14393.969 64 bit
       #4

    As dalchina commented the in place upgrade repair typically fixes problems related to restorehealth errors.

    If the in place upgrade repair failed to fix the restorehealth error please comment into the thread to indicate that there was a successful in place upgrade repair but a failure to fix restorehealth or whether there was a failure of the in place upgrade repair.

    If the computer is not having problems other than the restorehealth error code then the easiest method to fix the problem is to wait 30 days and perform an in place upgrade repair to the next build of Windows 10. This should fix any problems related to operating system and registry.

    Windows 10 May 2019 Update release date, news and features | TechRadar
    Windows 10 May 2019 Update announced, and major update changes - gHacks Tech News


    The Windows update for 4493509 recommends installing SSU before its install.
    https://support.microsoft.com/en-us/help/4493510
    https://support.microsoft.com/en-us/...date-kb4493509
    Microsoft Update Catalog
      My ComputerSystem Spec

  5.    #5

    After checking your log, your DISM Repair command line is missing some syntax:
    "DISM /Online /Cleanup-Image /RestoreHealth /Source:F:\Sources\Install.wim" should be:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:F:\Sources\Install.wim:2

    I believe for install.esd it should be:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:ESD:F:\Sources\Install.esd:6

    EDIT: I forgot to add the Index number at the end of the command line. However, you must first check the WIM or ESD file to determine which Index you need:

    DISM /Get-WimInfo /WimFile:F:\Sources\Install.wim

    This will list the contents. Use whichever Index number matches your installed Windows Edition (such as Pro, Home/Core) in the Repair command line.
    Last edited by DonCuthbert; 1 Week Ago at 02:26.
      My ComputerSystem Spec

  6.    #6

    zbook said: View Post
    As dalchina commented the in place upgrade repair typically fixes problems related to restorehealth errors.

    If the in place upgrade repair failed to fix the restorehealth error please comment into the thread to indicate that there was a successful in place upgrade repair but a failure to fix restorehealth or whether there was a failure of the in place upgrade repair.

    If the computer is not having problems other than the restorehealth error code then the easiest method to fix the problem is to wait 30 days and perform an in place upgrade repair to the next build of Windows 10. This should fix any problems related to operating system and registry.

    Windows 10 May 2019 Update release date, news and features | TechRadar
    Windows 10 May 2019 Update announced, and major update changes - gHacks Tech News


    The Windows update for 4493509 recommends installing SSU before its install.
    https://support.microsoft.com/en-us/help/4493510
    https://support.microsoft.com/en-us/...date-kb4493509
    Microsoft Update Catalog
    zbook: Inplace upgrade didn't work. (see Problems re-installing windows as a live upgrade ). That's what caused me to attempt DISM, etc. Following your suggestion re waiting until the next version is something I've considered, an may do. Since this drive is imaged and cloned, I may try a clean install. As suggested, I installed kb4493510, no problems. Rebooted and tried kb4493509 again, but no joy. I appreciate your help though.
      My ComputersSystem Spec

  7.    #7

    If an in-place upgrade repair fails (how? - there should be log files...) I would expect a feature upgrade to fail similarly.
      My ComputersSystem Spec

  8.    #8

    DonCuthbert said: View Post
    After checking your log, your DISM Repair command line is missing some syntax:
    "DISM /Online /Cleanup-Image /RestoreHealth /Source:F:\Sources\Install.wim" should be:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:F:\Sources\Install.wim:2

    I believe for install.esd it should be:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:ESD:F:\Sources\Install.esd:6

    EDIT: I forgot to add the Index number at the end of the command line. However, you must first check the WIM or ESD file to determine which Index you need:

    DISM /Get-WimInfo /WimFile:F:\Sources\Install.wim

    This will list the contents. Use whichever Index number matches your installed Windows Edition (such as Pro, Home/Core) in the Repair command line.
    You're right of course. Thanks. I've been working with extracted wims on a few projects and forgot I had to be more specific with the thumb drive and the iso. I reran DISM as suggested but still no joy. Thanks for the correct format though. I've already revised my crib sheets.
      My ComputersSystem Spec

  9.    #9

    In addition to examining the logs from a failed in-place upgrade attempt, you might consider the tool/sequence in post #2 here:
    Windows 10 Recovery Tools - Bootable Rescue Disk - Windows 10 Forums
      My ComputersSystem Spec


  10. Posts : 25,055
    windows 10 professional version 1607 build 14393.969 64 bit
       #10

    Run setupdiag and post a share link for the results into the thread using one drive, drop box, or google drive:
    SetupDiag | Microsoft Docs
      My ComputerSystem Spec


 
Page 1 of 2 12 LastLast

Related Threads
Hi Team Ten! I have been having random blue screens, generally around memory_management. I ran memtest86 (not plus) for multiple passes, which first gave errors. Then running individual sticks in multiple slots it had no errors.I haven't run...
Solved How to set up a source for A repair via DISM in Performance & Maintenance
I have some corrupted Op Sys files in my desktop that cannot be repaired via SFC/scannow and am trying to do so by DISM using the windows folder in my laptop but I cannot figure out how to use the source option to repair my desktop. I have ...
Hello, Once in awhile I check my system files using SFC, I just checked it but found problems and wasn't able to fix them. So I ran the DISM command but then again couldn't fix it. DISM /Online /Cleanup-Image /restorehealth The DISM...
Hello, everyone, I've managed to resolve most of my problems with build 10041 by making SFC work. I've opened a thread on Windows Insider's forums explaining how to do it. Check it out:...
This is on a new pc I bought today. Bad news! Where can I get an ISO 10240 which I can use on my external disk as a source file to repair - or where can I go for a source file? Appreciate any help. Thanks!
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:04.
Find Us