Dism is unable to repair system files

Page 1 of 2 12 LastLast

  1. Posts : 240
    Dual Boot Windows 11 & 10, usually latest version
       #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:

    Dism is unable to repair system files-update-history.jpg

    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:

    Dism is unable to repair system files-manual-update-failed.jpg


    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 Computers


  2. Posts : 42,988
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #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 Computers


  3. Posts : 240
    Dual Boot Windows 11 & 10, usually latest version
    Thread Starter
       #3

    dalchina said:
    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 Computers


  4. Posts : 41,474
    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 Computer


  5. Posts : 119
    Windows 10
       #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; 13 Apr 2019 at 02:26.
      My Computer


  6. Posts : 240
    Dual Boot Windows 11 & 10, usually latest version
    Thread Starter
       #6

    zbook said:
    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 Computers


  7. Posts : 42,988
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #7

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


  8. Posts : 240
    Dual Boot Windows 11 & 10, usually latest version
    Thread Starter
       #8

    DonCuthbert said:
    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 Computers


  9. Posts : 42,988
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #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 Computers


  10. Posts : 41,474
    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 Computer


 

  Related Discussions
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 08:19.
Find Us




Windows 10 Forums