sfc dism dismal - maybe this can help someone else

  1. Posts : 6
    Win 10 Pro 1903

    sfc dism dismal - maybe this can help someone else

    Tried an in-place upgrade from 1803 to 1903 but it kept failing with "...failed in the SAFE_OS phase with an error during MIGRATE_DATA operation".

    Uninstalled anti-virus and several other old tools. Updated all drivers and BIOS/UEFI. Still same error.

    sfc couldn't fix errors and dism never found the source file.

    Closer look at CBS.log showed a hash error for a manifest file, that was not in the install.wim.

    So I downloaded all the updates that Windows had done and started unpacking them to look for the file (tedious). Found it ... yayyy. But could I rename or delete it in WinSXS/Manifest? No! Tried everything with permissions and ownership.

    In the end I booted from a Windows installation flash drive. Moved on to the command prompt, renamed the offensive file and copied the one with the expected hash that I had extracted from one of the update cab files.

    Rebooted Windows - no more corruptions or complaints from sfc.

    Quickly did a system backup and will try the upgrade from 1803 to 1903 tomorrow. Fingers crossed.
      My Computer

  2. Posts : 39,995
    windows 10 professional version 1607 build 14393.969 64 bit

    When performing upgrades knowing that there may be upgrade problems:

    1) Use a bootable Windows 10 iso
    2) Uninstall all non-Microsoft antivirus
    3) Uninstall all non-Microsoft firewall
    4) Uninstall all non-Microsoft drive encryption
    5) Place the computer in clean boot
    6) Disconnect all nonessential hardware
    7) Detach all drives except the Windows drive
    8) Perform the upgrade without updates or internet connection
    9) If the upgrade fails run setupdiag:

    This is an uprade checklist:

    Run through this check list before the next upgrade attempt:
    1) remove nonessential hardware
    USB devices
    portable optical drives (CD, DVD)
    bluetooth devices
    USB drives (other than a windows 10 iso if used for the upgrade)
    USB Wireless Mouse or Keyboard Receiver, USB Wireless Network Card
    secondary monitors
    2) These should be the only attached devices:
    wired mouse
    wired keyboard
    Any of these that have been done in the past week are not necessary to repeat:
    3) open administrative command prompt and type or copy and paste: (repair file system)
    chkdsk /r /v 
    This may take many hours so plan to run overnight
    Find the chkdsk report in the event viewer using the information in this link and post into the thread:
    Read Chkdsk Log in Event Viewer in Windows 10 Performance Maintenance Tutorials
    4) open administrative command prompt and copy and paste: (repair operating system)
    sfc /scannow 
    dism /online /cleanup-image /restorehealth 
    When these have completed > right click on the top bar or title bar of the administrative command prompt box > left click on edit then select all > right click on the top bar again > left click on edit then copy > paste into the thread
    5) update windows (have all recommended updates installed) and reboot after updates
    6) List and uninstall all non-Microsoft antivirus software
    (This includes always on and manual software.)
    (This includes running the applicable antivirus uninstall tools for any AV that could have been incompletely uninstalled)
    7) List and uninstall all non-Microsoft firewall software
    8) List all Microsoft and non-Microsoft drive encryption software. 
    Uninstall all non-Microsoft disk encryption software
    9) Run disk cleanup to clean temporary and system files
    10) Verify that the drive has > 30 GB free space (At least 25 GB is needed for creating dumps)
    11) Place the computer in clean boot:
    How to perform a Clean Boot in Windows 10 - TechNet Articles - United States (English) - TechNet Wiki
    12) Detach all SATA devices other than the disk drive that has the Windows operating system
    (Make sure that the only disk drive that is attached to the computer at the time of the upgrade attempt is the disk drive containing Windows)
    (Other disk drives may be able to be detached by disconnecting cables or if necessary to remove the drive from the computer)
    13) Make sure that there is no metered connection:  https://support.microsoft.com/en-us/help/17452/windows-metered-internet-connections-faq
      My Computer

  3. Posts : 6
    Win 10 Pro 1903
    Thread Starter

    Perhaps I should have been more detailed in my post. I literally did everything I could find on tenforums and sysnative. Everything non essential unplugged, tried several tools/scripts provided here and over there. Lots of reading on social.technet.microsoft. Some downloads from Majorgeeks... spent several days. Went to bed with "dism, dism, dism... restorehealth in my head"

    Couldn't do step 7 (remove all other drives, i.e. step 12 in the upgrade checklist) as Windows (in-place upgrade) then complained it could not verify the activation and wouldn't continue.

    I will be placing the current backup on an SSD that is the same model and slimming down Windows (with removal tool for antivirus and Revo for older tools/utilities) before trying to upgrade again.

    Main purpose of my post was to share how I fixed the manifest file issue. Maybe someone has done it the same way but I could not find it on the web.
      My Computer

  4. Posts : 6
    Win 10 Pro 1903
    Thread Starter

    What happened: 1803 to 1903 via 1809

    Just a what happened in the end post:

    Nothing seemed to help with the upgrade to 1903. So restored the image of 1803 I started with -

    BIOS and all drivers updated.
    Nothing disabled or uninstalled (even antivirus was running).
    Everything left plugged in.
    In-place upgrade to 1809 with downloaded ISO.
    In-place upgrade to 1903 with ISO created with MediaCreator on 1809.

    Dism also no longer has problems finding source (don't need to specify source location - which never worked on 1803 anyway).
      My Computer

  5. Posts : 39,995
    windows 10 professional version 1607 build 14393.969 64 bit

    There is a log collector used in another forum room.
    Run V2 and upload the results into this thread:
    BSOD - Posting Instructions

    Open disk management > by default some columns are compressed > widen each Status and Volume > make sure the contents within the parenthesis are in full view and that none of the characters are cutoff > view disk 0 > widen this row as needed so that all of the characters are in full view > post an image into the thread
    Disk Management - How to Post a Screenshot of
      My Computer

  6. Posts : 6
    Win 10 Pro 1903
    Thread Starter

    Sorry for not being clear. The last steps I went through lead to a successful upgrade to 1903 - even with everything plugged in, antivirus on and no selective startup.

    The problem in my case seemed to be that I had to upgrade from 1803 to 1809 first. I don't know if fixing the manifest as mentioned in my initial post made a difference.
      My Computer

  7. Posts : 39,995
    windows 10 professional version 1607 build 14393.969 64 bit

    Glad to see it sorted.
      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 03:07.
Find Us

Windows 10 Forums