I have a working installation of Win10.1809. It fails sfc /scannow
and DISM /Online /Cleanup-Image /RestoreHealth
. As well, an in-place upgrade using Media Creator 1809 .iso file also fails, with this error specification: 0x8007001f-0x20006 The installation failed in the SAFE_OS phase with an error during REPLICATE_OC operation
. What next steps would make sense, without scraping everything and starting over?
I would check to see if you can run any DISM commands from that computer - for example: DISM /Online /Get-Features
If it appears to be broke (can't find the file), create the CheckSUR.log
, within %WinDir%\Logs\CBS\CheckSUR.log
for example: DISM /Online /Cleanup-Image /ScanHealth
The log file will be created here: C:\Windows\Logs\CBS\CheckSUR.log
On the bottom portion of the log, look for unavailable files or missing files. You will need to find another computer (i.e. reference computer) in the environment that matches the hardware model and OS version. Look for the files on the reference computer and copy them to the broken computer. If you are unable to find the files, you can download and expand the KB file.
If you download the KB, use the following syntax to unpack them: Expand -F:* UpdateKBXXXX.msu x:\DestinationDirectory
Before you copy .mum, .cab, and manifests from the reference computer to the failed computer, you need to take ownership of the directory and also add your userid to that folder (i.e. credentials = A123456).
To change ownership and add full control perms to your AID
takeown /F c:\Windows\Servicing\Packages /D y /R
cacls c:\Windows\Servicing\Packages /E /T /C /G A123456:F
takeown /F c:\Windows\winsxs\Manifests /D y /R
cacls c:\Windows\winsxs\Manifests /E /T /C /G A123456:F
Once you get the missing .mum and .cat files, copy them to C:\Windows\servicing\Packages on the broken computer. Make sure the name and architecture (x64 and x86) are the same. Manifests will need to be copied here: C:\Windows\WinSxS\Manifests
To remove permissions and set ownership back to TrustedInstaller, follow these commands: To remove ownership or put back into TrustedInstaller and remove permissions for userid
cacls c:\Windows\Servicing\Packages /E /T /C /R A123456
icacls "c:\Windows\Servicing\Packages" /setowner "NT SERVICE\TrustedInstaller" /T /C
cacls c:\Windows\winsxs\manifests /E /T /C /R A123456
icacls "c:\Windows\winsxs\manifests" /setowner "NT SERVICE\TrustedInstaller" /T /C
Once complete, run the following command to see if DISM is work: DISM /Online /Get-Features
If that works, have the user reboot the computer and retry the upgrade. Retry the upgrade.
User contributions licensed under CC BY-SA 3.0