From the logs (see snippet), it looks like a problem is coming from the disk.
The BCD, which stands for Boot Configuration Data, and something in how SysPrep handles this is failing. I am having somewhat similar issues in Windows 11 x64 v24H2 because BitLocker is enabled by default and disabling it damages the BCD so that if you ever try to turn BitLocker on again, the disk fails to boot up.
Have a look at how you have BitLocker configured and eliminate that. My issue looks different than yours, but eliminate BitLocker and continue.
I asked Copilot to find a solution regarding this issue, and it gave me very general instructions on what to do. I'd proceed carefully with these steps, but it might be good to eliminate them before you engage with Microsoft. It seems that whether you ask AI or look on Microsoft forums, you're always being asked to follow these steps. So why not?
The steps:
- Open PowerShell as an Admin and run: dism /online /cleanup-image /restorehealth sfc /scannow
- Verify Boot Configuration Data. It didn't specify what to look for, but if you have a working good Windows 11, you might want to compare that one to the broken one. bcdedit /enum all If you see corruption (again, no specifics, so I suggest starting here: https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/bcd-system-store-settings-for-uefi?view=windows-11), the instructions are to fix it using these commands: bootrec /fixmbr bootrec /fixboot bootrec /scanos bootrec /rebuildbcd If that fails, then the recommendation is to disable Secure Boot (in the system BIOS) and try running SysPrep again. Even if you don't want to go into Production with that, if disabling Secure Boot work, then the problem has been narrowed down further.
- Disable Windows Store Apps -- you've already done this. Frankly, I don't understand how AppX stuff would impact the BCD, so the AI is reaching heavily for anything that seems like its similar.
In addition to the SysPrep Logs, have a look at both Application and System event Logs. Have a look also at the Administrative events.
When looking at the event logs, its best to first find the point-of-failure in the SysPrep Logs (this is sometyhing you know) like I have below, and try to match the timestamp from the SysPrep logs with your event logs (which is something you don't know). Hopefully, you'll see some warning event or an error that will give you more clues.
One last thing: since this seems to involve BCD/EFI/SecureBoot and the like, if you end up in the BIOS, many of them have their own event logs. You might want to have a look there for any disk-related errors that the system forces itself past
Good luck.
2025-02-27 08:56:51, Error [0x0f0043] SYSPRP WinMain:The sysprep dialog box returned FALSE
2025-02-27 08:56:56, Info SYSPRP Name: Microsoft-Windows-ErrorReportingCore, Order: 2560
2025-02-27 08:57:00, Info SYSPRP Name: Microsoft-Windows-ErrorReportingCore, Order: 4352
2025-02-27 08:57:10, Error SYSPRP BCD: BiUpdateEfiEntry failed c000000d
2025-02-27 08:57:10, Error SYSPRP BCD: BiExportBcdObjects failed c000000d
2025-02-27 08:57:10, Error SYSPRP BCD: BiExportStoreAlterationsToEfi failed c000000d
2025-02-27 08:57:10, Error SYSPRP BCD: Failed to export alterations to firmware. Status: c000000d
2025-02-27 08:57:11, Info [sysprep.exe] Exit WinRE_Generalize returns success with last error: 0x0