
Error 0x8007001f – 0x20006 when upgrading to Windows 10
nimda
- 0
While updating to Windows 10 via Media Creation Tool, some users may encounter error 0x8007001f – 0x20006. The error message may contain the following information:
Failed to install Windows 10
The computer is reverted to the state it was in before the Windows 10 installation began.0x8007001f – 0x20006
Error during installation of SAFE_OS during REPLICATE_OC operation
During the SAFE_OS stage, the installation of all the updates necessary for the operating system is started, however, at some point something goes wrong and the Media Creation Tool shows the user an error 0x8007001f – 0x20006. This “something” can be an interrupted download of update files, problems with the Internet connection, and much more.
How to get rid of error 0x8007001f – 0x20006?

Solution # 1 Run the troubleshooter
The first thing you should do is try running the Update Troubleshooter and see if it can fix your problem. Go to next link to download the WindowsUpdate.diagcab file. Run the downloaded file, after which the following window should appear in front of you:
Click on the “Advanced” item in the lower left corner of the window and check the box next to the “Apply fixes automatically” option. Then click on the “Next” button and follow the subsequent instructions on the screen.
Solution # 2 Resetting the Update Center components
In some cases, to resolve error 0x8007001f – 0x20006, you may need to reset all Windows Update components. Fortunately, there have been ways to automate this process for a long time – you don’t have to sit at the Command Line for half an hour, manually prescribing each command.
We suggest you use the script of a smart, enthusiastic user who can completely reset all the components of your Update Center. Press Win + R and then execute the value notepad.exe… Next, paste the following script into the Notepad window:
:: Run the reset Windows Update components.
:: void components ();
:: / ********************************************* ************************************* /
: components
:: —— Stopping the Windows Update services ——
call: print Stopping the Windows Update services.
net stop bitscall: print Stopping the Windows Update services.
net stop wuauservcall: print Stopping the Windows Update services.
net stop appidsvccall: print Stopping the Windows Update services.
net stop cryptsvccall: print Canceling the Windows Update process.
taskkill / im wuauclt.exe / f
:: —— Checking the services status ——
call: print Checking the services status.sc query bits | findstr / I / C: “STOPPED”
if% errorlevel% NEQ 0 (
echo. Failed to stop the BITS service.
echo.
echo.Press any key to continue. … …
pause> nul
goto: eof
) call: print Checking the services status.sc query wuauserv | findstr / I / C: “STOPPED”
if% errorlevel% NEQ 0 (
echo. Failed to stop the Windows Update service.
echo.
echo.Press any key to continue. … …
pause> nul
goto: eof
)call: print Checking the services status.
sc query appidsvc | findstr / I / C: “STOPPED”
if% errorlevel% NEQ 0 (
sc query appidsvc | findstr / I / C: “OpenService FAILED 1060”
if% errorlevel% NEQ 0 (
echo. Failed to stop the Application Identity service.
echo.
echo.Press any key to continue. … …
pause> nul
if% family% NEQ 6 goto: eof
)
)call: print Checking the services status.
sc query cryptsvc | findstr / I / C: “STOPPED”
if% errorlevel% NEQ 0 (
echo. Failed to stop the Cryptographic Services service.
echo.
echo.Press any key to continue. … …
pause> nul
goto: eof
):: —— Delete the qmgr * .dat files ——
call: print Deleting the qmgr * .dat files.del / s / q / f “% ALLUSERSPROFILE% Application Data Microsoft Network Downloader qmgr * .dat”
del / s / q / f “% ALLUSERSPROFILE% Microsoft Network Downloader qmgr * .dat”:: —— Renaming the softare distribution folders backup copies ——
call: print Deleting the old software distribution backup copies.cd / d% SYSTEMROOT%
if exist “% SYSTEMROOT% winsxs pending.xml.bak” (
del / s / q / f “% SYSTEMROOT% winsxs pending.xml.bak”
)
if exist “% SYSTEMROOT% SoftwareDistribution.bak” (
rmdir / s / q “% SYSTEMROOT% SoftwareDistribution.bak”
)
if exist “% SYSTEMROOT% system32 Catroot2.bak” (
rmdir / s / q “% SYSTEMROOT% system32 Catroot2.bak”
)
if exist “% SYSTEMROOT% WindowsUpdate.log.bak” (
del / s / q / f “% SYSTEMROOT% WindowsUpdate.log.bak”
)call: print Renaming the software distribution folders.
if exist “% SYSTEMROOT% winsxs pending.xml” (
takeown / f “% SYSTEMROOT% winsxs pending.xml”
attrib -r -s -h / s / d “% SYSTEMROOT% winsxs pending.xml”
ren “% SYSTEMROOT% winsxs pending.xml” pending.xml.bak
)
if exist “% SYSTEMROOT% SoftwareDistribution” (
attrib -r -s -h / s / d “% SYSTEMROOT% SoftwareDistribution”
ren “% SYSTEMROOT% SoftwareDistribution” SoftwareDistribution.bak
if exist “% SYSTEMROOT% SoftwareDistribution” (
echo.
echo. Failed to rename the SoftwareDistribution folder.
echo.
echo.Press any key to continue. … …
pause> nul
goto: eof
)
)
if exist “% SYSTEMROOT% system32 Catroot2” (
attrib -r -s -h / s / d “% SYSTEMROOT% system32 Catroot2”
ren “% SYSTEMROOT% system32 Catroot2” Catroot2.bak
)
if exist “% SYSTEMROOT% WindowsUpdate.log” (
attrib -r -s -h / s / d “% SYSTEMROOT% WindowsUpdate.log”
ren “% SYSTEMROOT% WindowsUpdate.log” WindowsUpdate.log.bak
):: —— Reset the BITS service and the Windows Update service to the default security descriptor ——
call: print Reset the BITS service and the Windows Update service to the default security descriptor.sc.exe sdset wuauserv D: (A ;; CCLCSWLOCRRC ;;; AU) (A ;; CCDCLCSWRPWPDTLOCRSDRCWDWO ;;; BA) (A ;; CCDCLCSWRPWPDTLCRSDRCWDWO ;;; SO) (AP ;; CCLCSWR; AU; FA; CCDCLCSWRPWPDTLOCRSDRCWDWO ;; WD)
sc.exe sdset bits D: (A ;; CCLCSWLOCRRC ;;; AU) (A ;; CCDCLCSWRPWPDTLOCRSDRCWDWO ;;; BA) (A ;; CCDCLCSWRPWPDTLCRSDRCWDWO ;;; SO) (A ;; SLCS; SYRPWP AU; FA; CCDCLCSWRPWPDTLOCRSDRCWDWO ;; WD)
sc.exe sdset cryptsvc D: (A ;; CCLCSWLOCRRC ;;; AU) (A ;; CCDCLCSWRPWPDTLOCRSDRCWDWO ;;; BA) (A ;; CCDCLCSWRPWPDTLCRSDRCWDWO ;;; SO) (A ;; CCLCTWR; AU; FA; CCDCLCSWRPWPDTLOCRSDRCWDWO ;; WD)
sc.exe sdset trustedinstaller D: (A ;; CCLCSWLOCRRC ;;; AU) (A ;; CCDCLCSWRPWPDTLOCRSDRCWDWO ;;; BA) (A ;; CCDCLCSWRPWPDTLCRSDRCWDWO ;;; SO) (A ;; CCLCSWR; AU; FA; CCDCLCSWRPWPDTLOCRSDRCWDWO ;; WD):: —— Reregister the BITS files and the Windows Update files ——
call: print Reregister the BITS files and the Windows Update files.cd / d% SYSTEMROOT% system32
regsvr32.exe / s atl.dll
regsvr32.exe / s urlmon.dll
regsvr32.exe / s mshtml.dll
regsvr32.exe / s shdocvw.dll
regsvr32.exe / s browseui.dll
regsvr32.exe / s jscript.dll
regsvr32.exe / s vbscript.dll
regsvr32.exe / s scrrun.dll
regsvr32.exe / s msxml.dll
regsvr32.exe / s msxml3.dll
regsvr32.exe / s msxml6.dll
regsvr32.exe / s actxprxy.dll
regsvr32.exe / s softpub.dll
regsvr32.exe / s wintrust.dll
regsvr32.exe / s dssenh.dll
regsvr32.exe / s rsaenh.dll
regsvr32.exe / s gpkcsp.dll
regsvr32.exe / s sccbase.dll
regsvr32.exe / s slbcsp.dll
regsvr32.exe / s cryptdlg.dll
regsvr32.exe / s oleaut32.dll
regsvr32.exe / s ole32.dll
regsvr32.exe / s shell32.dll
regsvr32.exe / s initpki.dll
regsvr32.exe / s wuapi.dll
regsvr32.exe / s wuaueng.dll
regsvr32.exe / s wuaueng1.dll
regsvr32.exe / s wucltui.dll
regsvr32.exe / s wups.dll
regsvr32.exe / s wups2.dll
regsvr32.exe / s wuweb.dll
regsvr32.exe / s qmgr.dll
regsvr32.exe / s qmgrprxy.dll
regsvr32.exe / s wucltux.dll
regsvr32.exe / s muweb.dll
regsvr32.exe / s wuwebv.dll:: —— Resetting Winsock ——
call: print Resetting Winsock.
netsh winsock reset:: —— Resetting WinHTTP Proxy ——
call: print Resetting WinHTTP Proxy.if% family% EQU 5 (
proxycfg.exe -d
) else (
netsh winhttp reset proxy
):: —— Set the startup type as automatic ——
call: print Resetting the services as automatics.
sc.exe config wuauserv start = auto
sc.exe config bits start = delayed-auto
sc.exe config cryptsvc start = auto
sc.exe config TrustedInstaller start = demand
sc.exe config DcomLaunch start = auto:: —— Starting the Windows Update services ——
call: print Starting the Windows Update services.
net start bitscall: print Starting the Windows Update services.
net start wuauservcall: print Starting the Windows Update services.
net start appidsvccall: print Starting the Windows Update services.
net start cryptsvccall: print Starting the Windows Update services.
net start DcomLaunch:: —— End process ——
call: print The operation completed successfully.echo.Press any key to continue. … …
pause> nul
goto: eof
:: / ********************************************* ************************************* /
Click on the “File” item in the window menu bar and select “Save As …”. Name the file WUReset.cmd (be sure to use the cmd extension!) And save it to a convenient place on your PC, for example, on your desktop. Having created a file, double-click on it with LMB and watch the Update Center reset. Once it’s over, restart your computer and check for error 0x8007001f – 0x20006.
Solution # 3 Disable Firewall and Antivirus
There are times when an active firewall or antivirus can interfere with the Windows 10 installation process. To turn off Windows Firewall, you need to do the following:
- press Win + R;
- write control and press Enter;
- go to the “Windows Defender Firewall” section;
- click on the link “Turn Windows Defender Firewall on or off”;
- check the boxes next to disable the firewall for each type of network;
- save your changes.
To deactivate Windows Defender, you need to do the following:
- press Win + S;
- write a query “Windows Defender Settings” and select the found result;
- then click on the items “Protection against viruses and threats → Manage settings”;
- set the “Real-time protection” switch to the “Off” position;
- save your changes and restart your computer.
Run the update to “ten” again and see if the error 0x8007001f – 0x20006 appears.
Solution # 4 Clean system boot
There might be some software on your computer interfering with the Windows 10 installation. This can be easily verified by booting your OS cleanly. This is done as follows:
- press Win + R;
- write down msconfig and press Enter;
- go to the “Services” tab;
- put a check mark next to the option “Do not display Microsoft services” and click the “Disable all” button;
- go to the “Startup” tab;
- click on the link “Open Task Manager”;
- deactivate all software that will be in front of you on the list;
- restart your computer and run Windows 10 upgrade again.
We hope that this material was useful for you in solving the error 0x8007001f – 0x20006.