Windows 11 24H2 Triggering Recovery Mode after Sysprep

jaybird283 621 Reputation points
2024-11-06T22:30:41.0733333+00:00

I am trying to create our Windows 11 24H2 image but after running sysprep. the device is unable to boot and goes into recovery mode.

I have a lot of experience with creating images. and have been doing it for almost 20 years. and this is the first time i have run into this.

we noticed the following errors in setuperr.log

pGetUninstallInterfaceCommon: Failed loading the setupplatform, hr = 0x80070490[gle=0x00000003]

SYSPRP BCD: BiUpdateEfiEntry failed c000000d

SYSPRP BCD: BiExportBcdObjects failed c000000d

SYSPRP BCD: BiExportStoreAlterationsToEfi failed c000000d

SYSPRP BCD: Failed to export alterations to firmware. Status: c000000d

Windows for business | Windows Client for IT Pros | User experience | Other
{count} vote

3 answers

Sort by: Most helpful
  1. Jacob N. Miller 15 Reputation points
    2024-12-02T18:55:03.6933333+00:00

    It seems 24H2 has some issues with the /generalize stage of sysprep breaking the BCD. Check out this thread: https://learn.microsoft.com/en-us/answers/questions/1843393/windows-11-24h2-26100-1150-sysprep-generalize-brea

    In My case this fixed the BCD. After I Sysprep a computer, I've added these 3 lines to a script that runs on the newly imaged computers first boot:

    • bcdedit -set {current} osdevice partition=C:
    • bcdedit -set {current} device partition=C:
    • bcdedit -set {memdiag} device partition=\Device\HarddiskVolume2

    The Hard disk volume (\Device\HarddiskVolume2) maybe different on your setup.

    1 person found this answer helpful.

  2. Anonymous
    2024-11-08T01:56:20.4466667+00:00

    Hello,

    If you have installed any update to the image before sysprep, try to do not apply windows updates to Windows 11 24H2 before preparing the system for sysprep.

    The errors you’re seeing in the setuperr.log file suggest issues with the Boot Configuration Data (BCD) during the System Preparation (Sysprep) process. These errors could indicate that Sysprep was unable to properly configure the boot settings required for the first boot after imaging.

    BCD Repair:

    Make sure the BCD is correctly configured. You can repair it using the command prompt from Windows Recovery Environment (WinRE):

    Boot from a Windows installation media.

    Choose your language and regional settings, then click “Next”.

    Click on “Repair your computer”.

    Go to “Troubleshoot” > “Advanced Options” > “Command Prompt”.

    Use the following commands to repair the BCD:

    bootrec /fixmbr

    bootrec /fixboot

    bootrec /scanos

    bootrec /rebuildbcd

    After running these commands, restart the machine and check if the issue persists.

    Best Regards,

    Hania Lian

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.


  3. 玉伟 胡 5 Reputation points
    2025-03-14T06:05:55.7966667+00:00

    Hello, I also encountered the same problem. Have you solved it?


Your answer

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