Windows 11 deployment issues (after sysprep)


dijsil

New member
Local time
1:53 AM
Posts
5
OS
Windows 10
I am having an issue with windows 11 going into repair mode and am soon going to give up as I havent found a soltuion yet and have been trying a lot of different ideas however all ended up the same, either after encrypting the hard disk I reboot the pc and then issue occurs or now I am noticing that issue is happening also when I run windows updates after a reboot this happens.

I never had these kind of issues when I did the implementation of win 7 to 10 few years back with FOG and have been imaging win10 machines since then with FOG and found it great.

I removed the hard disk and connected it to another computer to read the log however the folder was missing so there is no log to check whats the issue
😕


1737730108133.webp

I install win11 on hyperv (tried also installing on an old esxi 7.0)then go into audit mode do all windows updates, just the windows updates and then run sysprep with the below command to use the unattend file (I tested the unattend file using usb to do the installation and it worked so that eliminates the unattend.xml of causing the issue.

@echo offcd
c:\windows\system32\sysprep
sysprep.exe /generalize /oobe /shutdown /unattend:C:\Sysprep\unattend.xml


1737730124074.webp

Then I would backup the image to fog by disabling the secure boot on the virtual machine

1737730140355.webp

1737730149438.webp


Then I would deploy it on the computer (with secure boot switched off as to be able to boot from the network,
Issue happens both if computer is joined to domain or not
Till now I tried it on Dell optiplex 3060 and Dell vostro 3510 both are getting same issue.

Any ideas as I am soon giving up and will end up doing them with usb and unattend
😕
 

My Computer

System One

  • OS
    Windows 10
    Computer type
    Laptop
    Manufacturer/Model
    Dell
In this guide, we’ll cover how to create a custom Windows 10/11 installation image with pre-installed apps, necessary files, and other environment and application settings.

 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
In this guide, we’ll cover how to create a custom Windows 10/11 installation image with pre-installed apps, necessary files, and other environment and application settings.


I tried the script before using sysprep however am still encountering same issues.
 

My Computer

System One

  • OS
    Windows 10
    Computer type
    Laptop
    Manufacturer/Model
    Dell
The batch script is to clean up temporary files, why do you think script will help with error.

The log file created by Startup Repair can help to find out the cause of the boot problem. In this video, i will explain how to use the Startup Repair tool to troubleshoot boot problems in Windows 10 and Windows 11.

 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
Thanks for your reply. It seems that it is not booting since the partition is not visible.

When the computer is first imaged it works and the partitions are available as you can see in the first screenshot.

Also the system32\logfiles\ folders are there however SRV isnt there :S
 

Attachments

  • IMG_20250128_113715.webp
    IMG_20250128_113715.webp
    209.3 KB · Views: 2
  • IMG_20250128_130853.webp
    IMG_20250128_130853.webp
    524 KB · Views: 2
  • IMG_20250128_113741.webp
    IMG_20250128_113741.webp
    129.1 KB · Views: 1
  • IMG_20250128_113715.webp
    IMG_20250128_113715.webp
    209.3 KB · Views: 2
  • IMG_20250128_093719.webp
    IMG_20250128_093719.webp
    267.1 KB · Views: 2

My Computer

System One

  • OS
    Windows 10
    Computer type
    Laptop
    Manufacturer/Model
    Dell
Without a error message that shows the cause of the boot problem, It's hard to know what is the problem is or fix it.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
The OS partition is there but for some reason its unknown
 

Attachments

  • IMG_20250128_134944.webp
    IMG_20250128_134944.webp
    93.9 KB · Views: 2

My Computer

System One

  • OS
    Windows 10
    Computer type
    Laptop
    Manufacturer/Model
    Dell
The Volume 0 file system unknown, it could be RAW file system you can try to repair it using TestDisk tool.

Learn how to repair a RAW disk using TestDisk in this easy-to-follow tutorial. TestDisk is a powerful tool for recovering lost partitions and fixing disk errors.

 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
thanks for your replies.

adding the below to the unattended file sorted the issue

Code:
<settings pass="oobeSystem">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35">
        <FirstLogonCommands>
            <SynchronousCommand wcm:action="add">
                <CommandLine>bcdedit -set {current} osdevice partition=C:</CommandLine>
                <Description>BCD Fix 1</Description>
                <Order>1</Order>
                <RequiresUserInput>false</RequiresUserInput>
            </SynchronousCommand>
            <SynchronousCommand wcm:action="add">
                <CommandLine>bcdedit -set {current} device partition=C:</CommandLine>
                <Description>BCD Fix 2</Description>
                <Order>2</Order>
                <RequiresUserInput>false</RequiresUserInput>
            </SynchronousCommand>
            <SynchronousCommand wcm:action="add">
                <CommandLine>bcdedit -set {memdiag} device partition=\Device\HarddiskVolume1</CommandLine>
                <Description>BCD Fix 3</Description>
                <Order>3</Order>
                <RequiresUserInput>false</RequiresUserInput>
            </SynchronousCommand>
        </FirstLogonCommands>
    </component>
</settings>
 

My Computer

System One

  • OS
    Windows 10
    Computer type
    Laptop
    Manufacturer/Model
    Dell
EDIT: Please see post #11 - I was able to answer my own question below there.

@dijsil,

I too have had difficulties with Sysprep images in 24H2. Everything was fine before 24H2. I have not dealt with it much simply because I rarely used Sysprep images but I keep meaning to revisit this topic.

So, the changes that you are showing for the answer file, I would just like to clarify: That is for the autounattend.xml and not the unattend.xml, correct?
 
Last edited:

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 will answer my own question in post #10:

I tested this and changes are indeed for the autounattend.xml. I changed not one thing in my answer file except to add the entries from post #9 and that solved my issues. Fantastic! I would have never found this on my own.

@dijsil, would you be able to tell me where you found this solution? I'm always looking for additional resources related to unattended installation.
 

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

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

Latest Support Threads

Back
Top Bottom