Share via

Error 0x80070002 - 24H2 cannot be installed, Windows cannot be repaired and cannot be reset

Anonymous
2024-10-07T22:06:25+00:00

EDIT:
Hello,

I finally reset my PC because... no solution.

I tried to restore the Restoration partition, but in the end I lost all my files anyway.

Thanks a lot,

Lusiiky


Hello,

I'm contacting you because I'm at a loss, and despite my knowledge of computers/Windows, I've run out of solutions...

The problem began this morning, when I tried to install the 24H2 update using the Installation Assistant, as my computer is fully compatible.

Except that after a while during installation: error 0x80070002.

So I tried to launch via the Windows ISO: setup.exe wouldn't launch, nothing happened.

After checking “C:\Windows\Logs\MoSetup\BlueBox.log”, the same error:

2024-10-07 23:51:29: Creating path (with ACL): [C:\$WINDOWS.~BT]...  

2024-10-07 23:51:29: Creating path: [C:\$WINDOWS.~BT\Sources]...  

2024-10-07 23:51:29: ScenarioCtrlHelpers::SetStateInRegistry: Setting Current Scenario: [0x1]...  

2024-10-07 23:51:29: ScenarioCtrlHelpers::SetStateInRegistry: Setting Install mode...  

2024-10-07 23:51:29: ScenarioCtrlHelpers::GenerateBoxHash: Calculating file hash...  

2024-10-07 23:51:30: Launching process: [C:\$WINDOWS.~BT\Sources\SetupHost.exe] with command-line [/Install /Media /InstallFile “E:\Sources\Install.wim” /MediaPath “E:”] in Session: [-1]  

2024-10-07 23:51:30: Launching: [C:\$WINDOWS.~BT\Sources\SetupHost.exe] [/Install /Media /InstallFile “E:\Sources\Install.wim” /MediaPath “E:”] from []!  

2024-10-07 23:51:30: LaunchProcessInSession: Error = 0x80070002  

2024-10-07 23:51:30: LaunchProcessInSession returned: [0x80070002]  

2024-10-07 23:51:30: Checking cleanup registry value...  

2024-10-07 23:51:30: Cleanup value missing... assuming no cleanup.  

2024-10-07 23:51:30: Skipping cleanup.  

2024-10-07 23:51:30: MainHr: Error = 0x80070002  

2024-10-07 23:51:30: wWinMain: Error = 0x80070002 

And via the Setup Assistant, I also got this error instead :

SetupHost process returned: [0x80070002], but SetupHostResult registry key was missing. 

I tried most of the repair commands :

sfc /scannow 

DISM /Online /Cleanup-Image /CheckHealth 

DISM /Online /Cleanup-Image /ScanHealth 

DISM /Online /Cleanup-Image /RestoreHealth 

I even tried via the ISO I had:

DISM /Online /Cleanup-Image /RestoreHealth /Source:E:\Sources\install.wim 

But nothing worked... still the same error...

I tried this script, which contains all commands for repairing Windows Update:

Write-Host “1. Stopping Windows Update Services...”  

Stop-Service -Name BITS -Force 

Stop-Service -Name wuauserv -Force 

Stop-Service -Name cryptsvc -Force 

Write-Host “2. Remove QMGR Data file...”  

Remove-Item -Path “$env:allusersprofile\Application Data\Microsoft\Network\Downloader\qmgr*.dat” -ErrorAction SilentlyContinue  

Write-Host “3. Removing the Software Distribution and CatRoot Folder...”  

Remove-Item -Path “$env:systemroot\SoftwareDistribution” -ErrorAction SilentlyContinue -Recurse 

Remove-Item -Path “$env:systemroot\System32\Catroot2” -ErrorAction SilentlyContinue -Recurse 

Write-Host “4. Resetting the Windows Update Services to defualt settings...”  

Start-Process “sc.exe” -ArgumentList “sdset bits D:(A;CI;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;;IU)(A;;CCLCSWLOCRRC;;;;SU)” 

Start-Process “sc.exe” -ArgumentList “sdset wuauserv D:(A;;CCLCSWRPLORC;;;AU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)” 

Set-Location $env:systemroot\system32  

Write-Host “5. Registering some DLLs...”  

regsvr32.exe atl.dll /s 

regsvr32.exe urlmon.dll /s 

regsvr32.exe mshtml.dll /s 

regsvr32.exe shdocvw.dll /s 

regsvr32.exe browseui.dll /s 

regsvr32.exe jscript.dll /s 

regsvr32.exe vbscript.dll /s 

regsvr32.exe scrrun.dll /s 

regsvr32.exe msxml.dll /s 

regsvr32.exe msxml3.dll /s 

regsvr32.exe msxml6.dll /s 

regsvr32.exe actxprxy.dll /s 

regsvr32.exe softpub.dll /s 

regsvr32.exe wintrust.dll /s 

regsvr32.exe dssenh.dll /s 

regsvr32.exe rsaenh.dll /s 

regsvr32.exe gpkcsp.dll /s 

regsvr32.exe sccbase.dll /s 

regsvr32.exe slbcsp.dll /s 

regsvr32.exe cryptdlg.dll /s 

regsvr32.exe oleaut32.dll /s 

regsvr32.exe ole32.dll /s 

regsvr32.exe shell32.dll /s 

regsvr32.exe initpki.dll /s 

regsvr32.exe wuapi.dll /s 

regsvr32.exe wuaueng.dll /s 

regsvr32.exe wuaueng1.dll /s 

regsvr32.exe wucltui.dll /s 

regsvr32.exe wups.dll /s 

regsvr32.exe wups2.dll /s 

regsvr32.exe wuweb.dll /s 

regsvr32.exe qmgr.dll /s 

regsvr32.exe qmgrprxy.dll /s 

regsvr32.exe wucltux.dll /s 

regsvr32.exe muweb.dll /s 

regsvr32.exe wuwebv.dll /s 

Write-Host “6) Resetting the WinSock...”  

netsh winsock reset  

Write-Host “7) Starting Windows Update Services...”  

Start-Service -Name BITS  

Start-Service -Name wuauserv  

Start-Service -Name cryptsvc  

Write-Host “8) Forcing discovery...”  

#wuauclt /resetauthorization /detectnow  

USOClient.exe RefreshSettings 

USOClient.exe StartScan

Same thing, nothing works...

I've tried in Settings > System > Recovery > Reinstall Now: it does download a repair version in Windows Update, but it fails at 8% with error 0x80070002 again.

I've tried “Reset this PC”, but I get “Recovery environment not found”.

Honestly, I've tried everything... I don't know what to do...

The problem is that it's a Cloud PC, so I don't have control over the BIOS, or the ability to launch with a USB key.

And as I have a lot of software, configurations, etc., I really don't want to reinstall the whole PC, despite the fact that this is surely the quickest and simplest solution. I'd really like to repair, reset without losing at least the files/software.

I'm now with Windows 11 23H2 (22635.4300).
And apparently, several people in certain forums have already had this error 0x8007000..

Thank you very much!

Hoping for a solution...

Windows for home | Windows 11 | Recovery and backup

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

5 answers

Sort by: Most helpful
  1. Anonymous
    2024-10-14T18:50:52+00:00

    Hi,

    I had the same issue and nothing worked until I found this article: https://peppercrew.nl/2023/01/upgrading-windows-11-22h2-fails-with-error-0x80070002/#:~:text=In%20conclusion%2C%20the%200x80070002%20error,and%20successfully%20upgrade%20my%20system.

    I had one driver crashing my install. I followed the steps to find the driver in the windows update log, and then used the command line utility to remove the driver. on my next install it worked! Do reach out if you get stuck!

    Was this answer helpful?

    3 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-10-10T01:24:47+00:00

    Hi,Lusiiky

    Thanks for your reply, I have some information that the cloud pc update needs to be updated at the same time as the push patch from the service provider, if the service provider suggests that you reset the whole pc, perhaps it needs to be reset before you can push 24H2, that's a guess on my part.

    I understand that resetting the system is a real pain in the ass, you could try a reserved data reset to see if that's possible.

    Also, for more in-depth information on how updates work on cloud pc's and how updates fail are advanced questions, you can go to the more advanced Learn community for advice,

    more users post these issues there, you can click on "Ask a question", there are experts who can provide more professional solutions in that place.  

    Here is a link to the forum where you can raise specific scenarios and share your idea to help solve the problem.  

    Windows 11 - Microsoft Q&A

    Sincerely hope that your question will be dealt with appropriately after contact the correct department. Thank you for your understanding! 

    Best regards

    Bobhe | Microsoft Community Support Specialist

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2024-10-09T21:22:17+00:00

    I have an alienware m18 r1 and get a similar error. I ran chkdsk, it's fully updated. I'm on my 10th try now. What is going on? I tried from windows update, iso and installation assistant. Any suggestions?

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2024-10-08T07:15:54+00:00

    Hello,

    Thank you for your reply.

    I've thought about it too, but I know that their only solution will be to reset the whole PC and I'd like to avoid it...

    I really don't know what's causing this error, and I'd like to fix the problem at source, but it's true that it seems complicated.

    Thank you

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2024-10-08T07:05:50+00:00

    Hello, Lusiiky

    Welcome to the Microsoft Community.

    Hello, thank you for your feedback on your issue here, it seems that you are experiencing an update exception when updating 24H2.

    First of all, thank you for sharing the information, it seems that you have already performed many of the fixing steps, which also includes some of the suggestions that I am going to provide you with.

    As I did notice that your current computer is a cloud computer, there are some differences between this and a regular computer. In order to help you better, can you provide me with the model number of your computer and the service provider that provided you with your computer system so that I can do the research for you.

    In addition, since the cloud pc does not have a recovery environment, the normal fix of overriding the installation to protect the files from being lost is not possible, so I suggest that you also give feedback to the vendor of the computer or computer system about your update anomalies, or perhaps they did not make the compatibility fixes in time.

    Best regards

    Bobhe | Microsoft Community Support Specialist

    Was this answer helpful?

    0 comments No comments