Windows 11 24H2 26100.1150 SysPrep /generalize breaks BitLocker functionality

Krzysztof Gajda 50 Reputation points
2024-07-27T11:01:07.64+00:00

I'm using SysPrep for years, currently with Windows 10 22H2 19045.4529 and Windows 11 23H2 22631.3737 I have no problems at all.

Today I've tried to prepare deploy image using Windows 11 24H2 26100.1150.

Steps:

  1. Start fresh install of Windows 11 24H2 26100.1150. then enter in audit mode (CTRL+SHIFT+F3)
  2. do things (Firefox, Thunderbird, some tweaking etc)
  3. run sysprep /oobe /generalize /shutdown
  4. capture the image, deploy to test device

System boots ok, WU works well (updates and drivers), then I've enable BitLocker then reboot and Windows was unable to boot (system repair starts)

I've tried the same steps 1-4 using Windows 11 23H2 22631.3737 iso image and after enabling BitLocker I did restart and everything works fine (Windows boot normally)

Next I went back to fresh instance Windows 11 24H2 26100.1150 and after audit I did 1-4 steps, but in 3rd step sysprep without "/generalize" (sysprep /oobe /shutdown) and I repeated test (enabling BitLocker in deployed image) and this time Windows 11 24H2 boots normally, but SID of this instance remains unchanged (lack of /generalize step).

I think that there is a bug in sysprep generalize step in 24H2 26100.1150 regards bitlocker subsystem (the /generalize step did something that render bitlocker unusable)

Regards

Chris

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,013 questions
{count} votes

Accepted answer
  1. BARRAT Christophe 95 Reputation points
    2024-07-30T10:46:11+00:00

    Found the same issue but I have a workaround. There is an issue with the BCD configuration.

    After the Sysprep, I've added these 3 lines in the script WINDIR%\Setup\Scripts\SetupComplete.cmd :

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

     Of course, the lines can be a bit different depending on your disk configuration.

    This leaves me with a strong impression that this version of Win 11 has not been tested properly.

    4 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.