Solved Windows 11 24h2 Unattend Installation Problems


raddirad

New member
Local time
2:29 PM
Posts
11
Visit site
OS
macOS, Ubuntu, Debian, Windows 11
Hi,

I work for a company that provides automated OS installations (Windows and Linux) for it's users/customers.

I am having problems to install Win11 24h2 with an unattended installation. After the WinPE part/setup.exe the machine doesn't start and just cycles in the loading icon of the first reboot and does nothing.

The same unattend.xml works fine on Win11 23h2.

The installation procedure: The machine first boots into a linux image, prepartitions the drive, copies files onto the disk (WinPE), patches the unattend.xml and then reboots into the WinPE.

I discovered it must have to do something with the
XML:
<ModifyPartitions>
section in my unattend.xml. When I just comment it out or remove it, the installation runs fine. But this isn't a solution as this works good on a single disk and system but will most likely fail on a multidisk system.

This is what the section looks like

XML:
<ModifyPartitions>
<ModifyPartition wcm:action="add">          
<Format>NTFS</Format>          
<Label>WINDOWS</Label>          
<Letter>C</Letter>          
<Order>1</Order>          
<PartitionID>3</PartitionID>  
</ModifyPartition>      
<ModifyPartition wcm:action="add">                      
<Label>WINPE</Label>
<Letter>X</Letter>
<Order>2</Order>
<PartitionID>4</PartitionID>
</ModifyPartition>
</ModifyPartitions>

As we already have a proper partitioning done in the linux bootimage the unattend.xml doesn't need a CreatePartition section.

Yesterday I found out that when I dont include the following section the installation works fine. However I need the WinPE partition within the OOBE sections as it contains a script that is executed within OOBE, given the drive letter.
Any suggestion what to change to make the installation work with this section? Adding a Format tag didn't solve it.
XML:
<ModifyPartition wcm:action="add">                      
<Label>WINPE</Label>
<Letter>X</Letter>
<Order>2</Order>
<PartitionID>4</PartitionID>
</ModifyPartition>


Regards
raddirad
 
Windows Build/Version
26100.1150
Last edited:

My Computer

System One

  • OS
    macOS, Ubuntu, Debian, Windows 11
    Computer type
    Laptop
24H2 Setup is definitely more strict about unattended files, in comparison to previous Windows versions.

XML:
<ModifyPartition wcm:action="add">                  
<Label>WINPE</Label>
<Letter>X</Letter>
<Order>2</Order>
<PartitionID>4</PartitionID>
</ModifyPartition>
You're missing the <Format>NTFS</Format> tag.

I don't understand your deployment scheme. Normally boot.wim is loaded by a bootloader, and extracts itself into RAM drive X:
What is this persistent "WINPE" volume that needs to be around for the OOBE stage? Are you extracting boot.wim to a local partition, and rebooting from Linux straight into it? You're leaving out key details on how your Windows Setup is supposed to work.
 

My Computer

System One

  • OS
    Windows 7
Deployment scheme is the following:
boot linux bootimage
partition drive
copy winpe to winpe partition
patch unattend.xml
reboot to winpe
run setup.exe with patched unattend.xml
run postinstallation commands in OOBE

The format tag is not the issue. I found out it is the drive letter.
Changing it to anything, except X gets me into a running system.

Is there any documentation about this?
 

My Computer

System One

  • OS
    macOS, Ubuntu, Debian, Windows 11
    Computer type
    Laptop
WinPE creates a RAM disk as X:, so it's a reserved drive letter while it's running. I don't know if MS explicitly explains this, but it's always been "known" in the Windows Setup community.
 

My Computer

System One

  • OS
    Windows 7
You can post your own threads. It's not polite to camp on someone else's problem which hasn't been resolved.
 

My Computer

System One

  • OS
    Windows 7
So my issue is resolved.

It seems that a partition cannot have the same drive letter as the WinPE ramdisk, as it was in my case. Strangely this only appeared with 24h2, before it worked perfectly fine with older versions of Windows.
Setting the letter to anything other than "X" solved the issue.
 

My Computer

System One

  • OS
    macOS, Ubuntu, Debian, Windows 11
    Computer type
    Laptop
So my issue is resolved.

It seems that a partition cannot have the same drive letter as the WinPE ramdisk, as it was in my case. Strangely this only appeared with 24h2, before it worked perfectly fine with older versions of Windows.
Setting the letter to anything other than "X" solved the issue.
You may have been lucky to get away with it prior to 24H2, but it is definitely not "best practice". BTW, an observation made by several persons working with unattended setup is that 24H2 seems to be much stricter in enforcing adherence to the rules.

I had some minor issues in my answer files that I had to correct to make them work properly with 24H2. They worked flawlessly in 23H2, but not in 24H2. So, I guess that this is a learning experience for all of us.
 

My Computers

System One System Two

  • OS
    Win11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Kamrui Mini PC, Model CK10
    CPU
    Intel i5-12450H
    Memory
    32GB
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 2TB NVMe SSD
    1 x 4TB NVMe SSD
    1 x 4TB 2.5" SSD
    PSU
    120W "Brick"
    Keyboard
    Corsair K70 Mechanical Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
is there an up-to-date version of windows 11 24h2?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    Intel Core i7-9700F, 4500 MHz
    Motherboard
    ASRock B365M-HDV
    Memory
    16 GB DDR4
    Graphics Card(s)
    GeForce GTX 1070 (8 GB)
    Sound Card
    Realtek ALC887 @ Intel Kaby Point PCH - High Definition Audio
    Monitor(s) Displays
    Samsung 32 cale
    Screen Resolution
    1680 x 1050
    Hard Drives
    Dysk nr 1 - Patriot Burst (B5950791083400100449) [894 GB] D: E:
    Dysk nr 2 - SAMSUNG MZVLB256HBHQ-000L2 (0025_3889_91CB_C6D1.) [238 GB] C: F: G:
    Keyboard
    roccat
is there an up-to-date version of windows 11 24h2?
The most recent update in the Release Preview line is 26100.1876.

You may already be aware of this, if so, apologies for the repetition, but this gets a little confusing as well.

While the ARM version of 24H2 is technically already released on new ARM devices, the AMD / Intel builds are still considered Release Preview although we expect the final release to be made very soon now. It may be as soon as two Tuesdays from now (Patch Tuesday, Oct 8) but there has been no confirmation of that as yet.
 

My Computers

System One System Two

  • OS
    Win11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Kamrui Mini PC, Model CK10
    CPU
    Intel i5-12450H
    Memory
    32GB
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 2TB NVMe SSD
    1 x 4TB NVMe SSD
    1 x 4TB 2.5" SSD
    PSU
    120W "Brick"
    Keyboard
    Corsair K70 Mechanical Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
I try the new OPK for 24H2 nothing change.. boot.wim continue to be bugged.
The new wizard have the same problem... (windows.old folder, don't copy Recovery folder..)
 

My Computer

System One

  • OS
    W10
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI
    CPU
    i7 7700
    Motherboard
    MSI Gaming M5
    Memory
    32Gb
    Graphics Card(s)
    GTX1060
    Monitor(s) Displays
    27"
    Screen Resolution
    1920x1080
    Hard Drives
    500Gb nvme
    PSU
    750W
    Case
    Coolermaster Stacker
    Keyboard
    Logittech
    Mouse
    Logitech MX1000
    Internet Speed
    1000/500
    Browser
    Edge
    Antivirus
    Nod32
It's not a bug, it's a design change.
W11 24h2 and old installation setup

setup.exe is calling SetupPrep.exe, instead of directly running by itself.
This is the same workflow as in-place upgrades, which is why SetupPrep makes an empty Windows.old folder. When you do in-place upgrades, you don't copy Recovery because one already exists.
 

My Computer

System One

  • OS
    Windows 7
It's not a bug, it's a design change.
W11 24h2 and old installation setup

setup.exe is calling SetupPrep.exe, instead of directly running by itself.
This is the same workflow as in-place upgrades, which is why SetupPrep makes an empty Windows.old folder. When you do in-place upgrades, you don't copy Recovery because one already exists.
Sorry garlin but I'm not agree with you...

Why in a new installation the wizard (new one) would create a folder called Windows.old, when there was never anything "old"??
Also if during the first installation you switch to the old wizard this folder is not created.
All this obviously talking about a first installation on an empty storage.
 

My Computer

System One

  • OS
    W10
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI
    CPU
    i7 7700
    Motherboard
    MSI Gaming M5
    Memory
    32Gb
    Graphics Card(s)
    GTX1060
    Monitor(s) Displays
    27"
    Screen Resolution
    1920x1080
    Hard Drives
    500Gb nvme
    PSU
    750W
    Case
    Coolermaster Stacker
    Keyboard
    Logittech
    Mouse
    Logitech MX1000
    Internet Speed
    1000/500
    Browser
    Edge
    Antivirus
    Nod32
Why in a new installation the wizard (new one) would create a folder called Windows.old, when there was never anything "old"??
The "new" setup from boot, it acts like an upgrade but only "keep nothing" is available
This is a "feature" (bug?) of the new setup...

Like many other things (need to keep more files/folders in the installation directory, etc... if we don't want to have the error of a missing driver or something else) compared to the old setup

That's why i replaced it with the old setup
 
Last edited:

My Computers

System One System Two

  • OS
    Windows 11 24h2
    Computer type
    PC/Desktop
    CPU
    Intel 10980XE
    Motherboard
    Asus Rampage VI Extreme Encore
    Memory
    G.Skill TridentZ Royale
    Graphics Card(s)
    EVGA RTX 2080Ti Hydro Copper
    Sound Card
    Asus
    Monitor(s) Displays
    Dell 27"
    Hard Drives
    Intel Optane 905P
    Samsung 990 Pro
    PSU
    Seasonic Prime TX 1000W
    Case
    Lian Li A77F
    Cooling
    Watercooling
    Keyboard
    Logitech MX keys
    Mouse
    Logitech MX Master 3S
    Browser
    Edge Canary
    Antivirus
    Kaspersky
  • Operating System
    Windows 11 24h2
    Computer type
    Laptop
    Manufacturer/Model
    Asus Pro
The "new" setup from boot, it acts like an upgrade but only "keep nothing" is available
This is a "feature" (bug?) of the new setup...

Like many other things (need to keep more files/folders in the installation directory, etc... if we don't want to have the error of a missing driver or something else) compared to the old setup

That's why i replaced it with the old setup

I also force to use the old setup, with new boot.wim, and all back to work!
 

My Computer

System One

  • OS
    W10
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI
    CPU
    i7 7700
    Motherboard
    MSI Gaming M5
    Memory
    32Gb
    Graphics Card(s)
    GTX1060
    Monitor(s) Displays
    27"
    Screen Resolution
    1920x1080
    Hard Drives
    500Gb nvme
    PSU
    750W
    Case
    Coolermaster Stacker
    Keyboard
    Logittech
    Mouse
    Logitech MX1000
    Internet Speed
    1000/500
    Browser
    Edge
    Antivirus
    Nod32
Yes, and I've been using the same Unattend since W10 and never had any problems
 

My Computers

System One System Two

  • OS
    Windows 11 24h2
    Computer type
    PC/Desktop
    CPU
    Intel 10980XE
    Motherboard
    Asus Rampage VI Extreme Encore
    Memory
    G.Skill TridentZ Royale
    Graphics Card(s)
    EVGA RTX 2080Ti Hydro Copper
    Sound Card
    Asus
    Monitor(s) Displays
    Dell 27"
    Hard Drives
    Intel Optane 905P
    Samsung 990 Pro
    PSU
    Seasonic Prime TX 1000W
    Case
    Lian Li A77F
    Cooling
    Watercooling
    Keyboard
    Logitech MX keys
    Mouse
    Logitech MX Master 3S
    Browser
    Edge Canary
    Antivirus
    Kaspersky
  • Operating System
    Windows 11 24h2
    Computer type
    Laptop
    Manufacturer/Model
    Asus Pro
Back
Top Bottom