Registry Hacking against sysprep errors

NOTE: This article is meant for system administrators only. DO NOT CHANGE YOUR REGISTRY if you administer your PRIVATE PC!

mx_microsoft_borderIf you want to create images and execute Sysprep, sometimes it can happen that the following error message is displayed when the computer was restarted:

The computer restarted unexpectedly or encountered an unexpected error. Windows installation can not proceed. To install windows click "OK" to restart the computer, and then restart the installation.

After restarting the computer an error message appears every time you restart the system, that prevents Windows from starting properly. But you’ve already prepared the system for the image creation so you don’t want to reinstall the system.

In this article I will show you how to save your image, without reinstalling the system.

Solving Sysprep Reboot Loop

To escape the continuous reboot loop without losing the preparated image, you have to adjust only one parameter in the registry:

Warning: Do not change your registry if you administer your private PC! This article is meant for system administrators who are familiar with the sysprep function!

  1. If the error message appears, don’t confirm with “OK” immediately. Press Shift + F10 to open the command line.
  2. In the newly opened command line, type in regedit. The Registry Editor opens.
  3. In the Registry Editor navigate to the following key: HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\ChildCompletion
  4. Change the value setup.exe from 0x00000001 (1) to 0x00000003 (3)
  5. After restarting the system, Windows starts again – in the Out of Box Experience mode. A new user must be set up. The user name of the new user must not exist yet.

Trapped in Audit Mode

If you have configured the system to start in audit mode after the generalization, it can happen that the following error message is shown:

Windows could not complete the installation. To install Windows on this computer, restart the installation.

To escape the reboot loop, adjusting the value setup.exe only is not the solution.

Saving the prepared image seems impossible at first. But even for this case there is a remedy:

Warning: Do not change your registry if you administer your private PC! This article is meant for system administrators who are familiar with the sysprep function!

  1. When the error message appears, press Shift + F10 to open the command line.
  2. In the newly opened command line, type in regedit. The Registry Editor opens.
  3. In the Registry Editor navigate to the following key: HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status
  4. Adjust the following values if they don’t match the following:
    • HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\AuditBoot
      • 0x00000000 (0)
    • HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\ChildCompletion\setup.exe
      • 0x00000003 (3)
    • HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\ChildCompletion\audit.exe
      • 0x00000000 (0)
    • HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\CleanupState
      • 0x00000002 (2)
    • HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\GeneralizationState
      • 0x00000007 (7)
    • HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\UnattendPasses\auditSystem
      • 0x00000000 (0)
  5. After a reboot the audit mode is aborted and Windows starts regularly – in the Out of Box Experience mode.

 

-xyra
http://miriamxyra.com – Miriam Wiesner

2 comments

  1. I have used the HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\ChildCompletion several times to fix problems (Thanks!) but I don’t really know what it does. Where can I learn more about this?

    Like

Comments are closed.