VMware vSphere

 View Only
  • 1.  In place upgrade of Win10 1709 (VM) to 20H2 - Failing to mount WIM file (Error 0x80070522)

    Posted Aug 20, 2021 01:44 AM

    I've tried every solution I could research to get an in place upgrade of WIN10 (1709):

    • Media Creation Tool

    • Upgrade Assistant

    • 1809 ISO

    • 20H2 ISO

    • 21H1 ISO

    • Disable UAC

    • Disabled all relevant local security policies that may interfere

    • Disabled AV agent

    • SFC / Scannow

    • SetupDiag.exe

    But each and every time it fails around the ~85% mark with the following error

    Failed to mount WIM file C:\$WINDOWS.~BT\Sources\SafeOS\winre.wim. Error 0x80070522

    I'm a local admin as well as running the setup.exe as admin, but for some reason the DISM command cannot mount the winre.wim file at a crucial stage in the upgrade process, so it simply fails each time.

    Can anyone think of something I've missed that would cause the permission error each time?



  • 2.  RE: In place upgrade of Win10 1709 (VM) to 20H2 - Failing to mount WIM file (Error 0x80070522)

    Posted Aug 20, 2021 08:44 AM

    VMTN has an area for Windows guest issues, I've reported your thread asking moderators to move it there.

     



  • 3.  RE: In place upgrade of Win10 1709 (VM) to 20H2 - Failing to mount WIM file (Error 0x80070522)

    Posted Aug 30, 2021 03:06 AM

    CMountWIM::DoExecute: Failed to mount WIM file C:\$WINDOWS.~BT\Sources\SafeOS\winre.wim. Error 0x80070522[gle=0x00000522]

     

    I thought I might have resolved the issue after running a WU reset script I found - but after a hopefull 45mins, it still fails with the error above.

    The script (in case it helps someone else) is here:

    https://www.yourwindowsguide.com/2015/12/reset-windows-update.html#.YSwXJ44zZjE

    Appreciate any further advice on this.

    It's a VM that contains a lot of dev history and applications. I would rather not have to start re-building the whole environment from scratch if it can be helped.



  • 4.  RE: In place upgrade of Win10 1709 (VM) to 20H2 - Failing to mount WIM file (Error 0x80070522)
    Best Answer

    Posted Aug 31, 2021 10:18 PM

    RESOLVED!

    After disabling / relaxing every 'common culprit' local security policy, I bit the bullet and reset all to defaults:

    secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose

    https://www.tenforums.com/tutorials/68588-reset-local-security-policy-settings-default-windows.html

    I was then able to manually run the DISM command - successfully!

    With the #1 issue out of the way, the automated WIN 10 update process ran without an issue.

    Dev box is now running 21H1.