Registry Hacking Against Sysprep Errors

April 14, 2016 | Views: 8344

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here
NOTE: This article is meant for system administrators only. DO NOT CHANGE YOUR REGISTRY if you administer your PRIVATE PC!

If you want to create images and execute Sysprep, sometimes you may see the following error message displayed when the computer is 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, which 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’ll 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:

  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’ve configured the system to start in audit mode after the generalization, you may see the following error message:

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’s a remedy:

  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\SetupStatus\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

mx_microsoft_border

Share with Friends
FacebookTwitterLinkedInEmail
Use Cybytes and
Tip the Author!
Join
Share with Friends
FacebookTwitterLinkedInEmail
Ready to share your knowledge and expertise?
11 Comments
  1. I am a bit confused while :
    [QUOTE]
    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:

    If the error message appears, don’t confirm with “OK” immediately. Press Shift + F10 to open the command line.
    In the newly opened command line, type in regedit. The Registry Editor opens.
    In the Registry Editor navigate to the following key: HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\ChildCompletion
    Change the value setup.exe from 0x00000001 (1) to 0x00000003 (3)
    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.
    [/QUOTE]
    How to regedit unbootable system if you know that “regedit.exe” is a Windows Application And this error loop is allso when you try to boot in save mode.

Page 2 of 2«12
Comment on This

You must be logged in to post a comment.

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Support Cybrary

Donate Here to Get This Month's Donor Badge

 

Cybrary|0P3N

Is Linux Worth Learning in 2020?
Views: 333 / December 14, 2019
How do I Get MTA Certified?
Views: 925 / December 12, 2019
How much does your PAM software really cost?
Views: 1378 / December 10, 2019
How Do I Get into Android Development?
Views: 1756 / December 8, 2019

We recommend always using caution when following any link

Are you sure you want to continue?

Continue
Cancel