I haven't seen a totality of this procedure posted anywhere but a combo of posts on this and a few other forums got me to a fix for 3 - Server 2019 boxes that had a problem installing the latest KB5023702 update.
During install - update failure with error code 80073712
Went down the rabbit hole of finding SFC and DISM repairs saying resource protection error and 1009 corrupt errors.
Tried to add components file to registry via command and load hive - failed with error components is corrupted.
After trying several suggestions on this forum for this type of corruption and the fixes not working, this procedure finally worked for me:
After doing this, I was able to pull the offending update that corrupted the components file (.net update KB5022782 according to CBS logs)
I'm sure there are parts of this that aren't the proper way to do it, but I'm happy that these servers and back to updating as usual again and no longer throwing registry corruption errors.
During install - update failure with error code 80073712
Went down the rabbit hole of finding SFC and DISM repairs saying resource protection error and 1009 corrupt errors.
Tried to add components file to registry via command and load hive - failed with error components is corrupted.
After trying several suggestions on this forum for this type of corruption and the fixes not working, this procedure finally worked for me:
- Download RegFileExport - Export offline Registry file to .reg file of Windows. Copy to C:\
- Copy file - C:\Windows\System32\config\COMPONENTS file to c:\
- Run CMD as Admin, then command:
- C:\>RegFileExport "c:\COMPONENTS" "c:\components.reg"
- Load Powershell Function in Powershell ISE "ConvertTo-RegistryHive", found on this site -
- Run function script, when finished run Command - ConvertTo-RegistryHive -Text (Get-Content c:\COMPONENTS.reg) -Hive c:\components.hive
- Copy previous COMPONENTS file to desktop. Rename Component.hive to COMPONENTS (no extension)
- Copy new COMPONENTS file to C:\Windows\System32\config\ (overwrite original)
- Run REGEDIT
- Click HKEY_LOCAL_MACHINE, Click File - Load Hive - Select C:\Windows\System32\config\COMPONENTS - Enter the name - COMPONENTS
- Reboot and try update again
- Once verified working, delete COMPONENTS backup file from desktop.
After doing this, I was able to pull the offending update that corrupted the components file (.net update KB5022782 according to CBS logs)
I'm sure there are parts of this that aren't the proper way to do it, but I'm happy that these servers and back to updating as usual again and no longer throwing registry corruption errors.
Last edited: