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


Lusiiky

Member
Local time
5:58 PM
Posts
6
Location
Belgium
OS
Windows 11
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:

Code:
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 :

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

I tried most of the repair commands :

Code:
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:

Code:
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:

Code:
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 Build/Version
Windows 11 23H2 (22635.4300)

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Shadow.tech
    CPU
    AMD EPYC 7543P
    Memory
    28GB 2400Mhz
    Graphics Card(s)
    NVIDIA RTX A4500
Is the time server sync accurate?
 

My Computer

System One

  • OS
    Windows 11 Pro
Is the time server sync accurate?
Yes, of course, I'm synchronized to an NTP server (fr.pool.ntp.org), and I check it from time to time, yes...
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Shadow.tech
    CPU
    AMD EPYC 7543P
    Memory
    28GB 2400Mhz
    Graphics Card(s)
    NVIDIA RTX A4500

My Computers

System One System Two

  • OS
    Win 11 Home ♦♦♦26100.2161 ♦♦♦♦♦♦♦24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® [May 2020]
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    Asus Pro WS X570-ACE (BIOS 4702)
    Memory
    G.Skill (F4-3200C14D-16GTZKW)
    Graphics Card(s)
    EVGA RTX 2070 (08G-P4-2171-KR)
    Sound Card
    Realtek ALC1220P / ALC S1220A
    Monitor(s) Displays
    Dell U3011 30"
    Screen Resolution
    2560 x 1600
    Hard Drives
    2x Samsung 860 EVO 500GB,
    WD 4TB Black FZBX - SATA III,
    WD 8TB Black FZBX - SATA III,
    DRW-24B1ST CD/DVD Burner
    PSU
    PC Power & Cooling 750W Quad EPS12V
    Case
    Cooler Master ATCS 840 Tower
    Cooling
    CM Hyper 212 EVO (push/pull)
    Keyboard
    Ducky DK9008 Shine II Blue LED
    Mouse
    Logitech Optical M-100
    Internet Speed
    300/300
    Browser
    Firefox (latest)
    Antivirus
    Bitdefender Internet Security
    Other Info
    Speakers: Klipsch Pro Media 2.1
  • Operating System
    Windows XP Pro 32bit w/SP3
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® (not in use)
    CPU
    AMD Athlon 64 X2 5000+ (OC'd @ 3.2Ghz)
    Motherboard
    ASUS M2N32-SLI Deluxe Wireless Edition
    Memory
    TWIN2X2048-6400C4DHX (2 x 1GB, DDR2 800)
    Graphics card(s)
    EVGA 256-P2-N758-TR GeForce 8600GT SSC
    Sound Card
    Onboard
    Monitor(s) Displays
    ViewSonic G90FB Black 19" Professional (CRT)
    Screen Resolution
    up to 2048 x 1536
    Hard Drives
    WD 36GB 10,000rpm Raptor SATA
    Seagate 80GB 7200rpm SATA
    Lite-On LTR-52246S CD/RW
    Lite-On LH-18A1P CD/DVD Burner
    PSU
    PC Power & Cooling Silencer 750 Quad EPS12V
    Case
    Generic Beige case, 80mm fans
    Cooling
    ZALMAN 9500A 92mm CPU Cooler
    Mouse
    Logitech Optical M-BT96a
    Keyboard
    Logitech Classic Keybooard 200
    Internet Speed
    300/300
    Browser
    Firefox 3.x ??
    Antivirus
    Symantec (Norton)
    Other Info
    Still assembled, still runs. Haven't turned it on for 13 years?
Is there a “defaultuser0” under c:\users?
 

My Computer

System One

  • OS
    Windows 11 Pro

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Shadow.tech
    CPU
    AMD EPYC 7543P
    Memory
    28GB 2400Mhz
    Graphics Card(s)
    NVIDIA RTX A4500
Already done.. I already resync time with NTP.

The only other thing I can think of is to make sure that the BIOS date and time, matches the Windows date and time.
When they don't match... strange things happen.
 

My Computers

System One System Two

  • OS
    Win 11 Home ♦♦♦26100.2161 ♦♦♦♦♦♦♦24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® [May 2020]
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    Asus Pro WS X570-ACE (BIOS 4702)
    Memory
    G.Skill (F4-3200C14D-16GTZKW)
    Graphics Card(s)
    EVGA RTX 2070 (08G-P4-2171-KR)
    Sound Card
    Realtek ALC1220P / ALC S1220A
    Monitor(s) Displays
    Dell U3011 30"
    Screen Resolution
    2560 x 1600
    Hard Drives
    2x Samsung 860 EVO 500GB,
    WD 4TB Black FZBX - SATA III,
    WD 8TB Black FZBX - SATA III,
    DRW-24B1ST CD/DVD Burner
    PSU
    PC Power & Cooling 750W Quad EPS12V
    Case
    Cooler Master ATCS 840 Tower
    Cooling
    CM Hyper 212 EVO (push/pull)
    Keyboard
    Ducky DK9008 Shine II Blue LED
    Mouse
    Logitech Optical M-100
    Internet Speed
    300/300
    Browser
    Firefox (latest)
    Antivirus
    Bitdefender Internet Security
    Other Info
    Speakers: Klipsch Pro Media 2.1
  • Operating System
    Windows XP Pro 32bit w/SP3
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® (not in use)
    CPU
    AMD Athlon 64 X2 5000+ (OC'd @ 3.2Ghz)
    Motherboard
    ASUS M2N32-SLI Deluxe Wireless Edition
    Memory
    TWIN2X2048-6400C4DHX (2 x 1GB, DDR2 800)
    Graphics card(s)
    EVGA 256-P2-N758-TR GeForce 8600GT SSC
    Sound Card
    Onboard
    Monitor(s) Displays
    ViewSonic G90FB Black 19" Professional (CRT)
    Screen Resolution
    up to 2048 x 1536
    Hard Drives
    WD 36GB 10,000rpm Raptor SATA
    Seagate 80GB 7200rpm SATA
    Lite-On LTR-52246S CD/RW
    Lite-On LH-18A1P CD/DVD Burner
    PSU
    PC Power & Cooling Silencer 750 Quad EPS12V
    Case
    Generic Beige case, 80mm fans
    Cooling
    ZALMAN 9500A 92mm CPU Cooler
    Mouse
    Logitech Optical M-BT96a
    Keyboard
    Logitech Classic Keybooard 200
    Internet Speed
    300/300
    Browser
    Firefox 3.x ??
    Antivirus
    Symantec (Norton)
    Other Info
    Still assembled, still runs. Haven't turned it on for 13 years?
The only other thing I can think of is to make sure that the BIOS date and time, matches the Windows date and time.
When they don't match... strange things happen.
As said, I'm on a Cloud PC, so it's impossible to get into the BIOS..
Then it would surprise me if the hypervisor's fake BIOS wasn't on time D:
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Shadow.tech
    CPU
    AMD EPYC 7543P
    Memory
    28GB 2400Mhz
    Graphics Card(s)
    NVIDIA RTX A4500
Same error and date/time is correct...

I'm afraid it's linked to the fact I can't run "setup.exe" from a Windows 11 ISO either...

CPU is an Intel i5 7500 with SSE4.2 and POPCNT is reported to be present (HWInfo). I've applied all the existing reg fixes but nothing changed.
 
Last edited:

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Multi
    CPU
    Intel i9-9900k
    Motherboard
    Gigabyte Z390 Aorus Master
    Memory
    Corsair Vengeance LPX 32GB (2 x 16GB)
    Graphics Card(s)
    Gigabyte RTX 2080Ti Gaming OC
    Monitor(s) Displays
    Samsung LC32HGQ
    Screen Resolution
    WQHD
    Hard Drives
    Samsung 970 Evo Plus 1 TB
    Crucial MX100 512 GB
    Samsung 840 Pro 256 GB
    Seagate ST4000DM000-1F2168 4 TB
    PSU
    Seasonic P-860 Platinium
    Case
    Corsair Graphite 780T
    Cooling
    Noctua NH-U14S
    Keyboard
    Corsair K70 MK.2 Low profile
    Mouse
    Logitech G Pro HERO
    Internet Speed
    200 Mb/s
    Browser
    Mozilla Firefox
    Antivirus
    Windows Defender
    Other Info
    BIOS version F11
  • Operating System
    Windows 11 Home 24H2
    Computer type
    Laptop
    Manufacturer/Model
    Clevo W650KJ1
    CPU
    Intel i5 7500
    Motherboard
    Clevo W65KK/KJ1
    Memory
    2×8 Go Corsair Vengeance 2400Mhz DDR4
    Graphics card(s)
    Nvidia GeForce GTX 1050
    Sound Card
    Integrated
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung 850 Evo M.2 SATA 250 GB
    Seagate ST1000LM035 1 TB
    Browser
    Mozilla Firefox
    Antivirus
    Windows Defender
    Other Info
    Replaced original Wi-Fi card by an Intel® Wireless-AC 9260
    BIOS version 1.05.13
Same error and date/time is correct...

I'm afraid it's linked to the fact I can't run "setup.exe" from a Windows 11 ISO either...

CPU is an Intel i5 7500 with SSE4.2 and POPCNT is reported to be present (HWInfo). I've applied all the existing reg fixes but nothing changed.
and yours is a cloud pc as well? (Just determining common denominators)
 

My Computer

System One

  • OS
    Windows 11 Pro
I have the same problem, it's not a cloud pc.

I've discovered that moving folder 'sources' inside folder $WINDOWS.~BT from root of drive C: to another folder and then run command (as administrator from inside the folder):
SetupHost.exe /Install /Media /InstallFile “D:\Sources\Install.wim” /MediaPath “D:”
(where D: is USB drive letter) does start the installation, but then it ends with error 0xC1900107.

I really don't know what else to do.
 
Last edited:

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Gigabyte

try using this tool to fix corruptions in windows updates. the options are pretty straight forward (all via powershell but with menu choices) and it goes pretty in-depth in resetting all components. i've had it repair some headaches before

1728839601562.png
...in case you're not familiar with GitHub downloading
 

My Computer

System One

  • OS
    Windows 11 Pro

My Computers

System One System Two

  • OS
    Win7
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
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
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Shadow.tech
    CPU
    AMD EPYC 7543P
    Memory
    28GB 2400Mhz
    Graphics Card(s)
    NVIDIA RTX A4500
I tried to restore the Restoration partition, but in the end I lost all my files anyway.
Sorry to hear that. I ended up having to clean install 24h2. No matter what I did I couldn't get 23h2 to upgrade. Took me 2 days and a night to get everything back like I wanted. But I lost no files. A suggestion if I may. Please consider some sort of backup solution going forward to protect yourself and your files. It's the best insurance you can have.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 2600.1742
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 nvme+256gb SKHynix m.2 nvme /External +512gb Samsung m.2 sata+1tb Kingston m2.nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium

Latest Support Threads

Back
Top Bottom