Windows Server DISM Error 1009 - COMPONENTS registry hive cannot be loaded

cdut bear 20 Reputation points
2026-06-24T05:53:03.5933333+00:00

error :

PS C:\Users\bear> reg load HKLM\TempComponents C:\Windows\System32\config\COMPONENTS

reg : ERROR: The configuration registry database is corrupt.

At line:1 char:1

  • reg load HKLM\TempComponents C:\Windows\System32\config\COMPONENTS
  • 
        + CategoryInfo          : NotSpecified: (ERROR: The conf...ase is corrupt.:String) [], RemoteException
    
        + FullyQualifiedErrorId : NativeCommandError
    
Windows for business | Windows Server | Devices and deployment | Other
0 comments No comments

Answer accepted by question author

Xuan Nhu 490 Reputation points Independent Advisor
2026-06-24T06:48:26.3066667+00:00

Hi Bear,

Thank you for reaching out.

The DISM 1009 and the reg load error are both pointing at the same thing: the COMPONENTS registry hive on the server (C:\Windows\System32\config\COMPONENTS) is corrupt and Windows can't read it. That hive is what the servicing stack relies on, so until it's healthy, Windows Update, DISM, and any feature/role install will keep failing in the same spot.

The tricky part is that the usual in-OS repair tools (SFC, DISM /RestoreHealth) lean on the same hive to do their work, so they can't fix it from inside the running system. We'll need to repair it from outside the OS.

Action Plan:

  1. Snapshot first. Take an EBS snapshot of the server's root volume before anything else, just so we have a clean rollback point if needed.
  2. Repair via a rescue instance. Stop the server, detach its root volume, and attach it to a second Windows instance in the same AZ. From there we can restore the COMPONENTS hive — specifically all three files (COMPONENTS, COMPONENTS.LOG1, COMPONENTS.LOG2) as a set — from a pre-failure snapshot, AMI, or VSS shadow copy if one exists.
  3. Reattach and verify. Put the volume back on the original instance, boot it up, and run DISM /RestoreHealth against a matching Server 2025 ISO to confirm the component store is healthy again.
  4. If no good backup of the hive exists, the cleanest supported path is an in-place upgrade using matching Server 2025 media (keeps apps and data, rebuilds the servicing stack), or a rebuild from a clean AMI with roles and data migrated over.

Please let me know if you need further clarification. Thank you so much.

Nhu

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.