Window 10 Custom Image Storage driver


tsgillx

New member
Local time
6:06 AM
Posts
3
OS
Windows 10 Pro 21H1
Hi,

I have created a working custom Windows 10 Pro image. I have trouble injecting the storage driver into the image.

When I boot from the USB stick, Windows 10 Setup cannot find the SSD drive. I downloaded the drivers also to the USB stick. I manually browse and load the driver from the USB stick and the SSD partition is visible and I can install the Windows 10 Pro. I have also autounattended.xml file which works fine too but it does not work on that specific workstation that needs specific storage drivers. How do I achieve this?

I would like to inject the drivers into the image and avoid the above bold marked step. I tried to inject the drivers into install.wim via dism but I had no luck. Do I miss something? Is there a working tutorial? I spend today but no luck till yet.

Windows 10 Pro 21H1
Dell Latitude 5420
128 GB Corsair GTX USB Drive
 
Windows Build/Version
Windows 10 Pro 21H1

My Computer

System One

  • OS
    Windows 10 Pro 21H1
Hi,

I have created a working custom Windows 10 Pro image. I have trouble injecting the storage driver into the image.

When I boot from the USB stick, Windows 10 Setup cannot find the SSD drive. I downloaded the drivers also to the USB stick. I manually browse and load the driver from the USB stick and the SSD partition is visible and I can install the Windows 10 Pro. I have also autounattended.xml file which works fine too but it does not work on that specific workstation that needs specific storage drivers. How do I achieve this?

I would like to inject the drivers into the image and avoid the above bold marked step. I tried to inject the drivers into install.wim via dism but I had no luck. Do I miss something? Is there a working tutorial? I spend today but no luck till yet.

Windows 10 Pro 21H1
Dell Latitude 5420
128 GB Corsair GTX USB Drive
Hi and welcome to the forum
I suggest that you post this in our sister forum,. Ten Forums - Windows 10 Help and Support Forum
 

My Computer

System One

  • OS
    Windows 11 Home(Beta) - 23H2 - 22635.3350
    Computer type
    PC/Desktop
    Manufacturer/Model
    Banana Junior 5600- G Series
    CPU
    AMD Ryzen 5 5600G
    Motherboard
    Asus ROG Strix B550-F
    Memory
    G.SKILL Ripjaws V Series 64GB 4x16
    Graphics Card(s)
    NVIDIA GeForce GTX TITAN X
    Monitor(s) Displays
    Viotek 32", 28" ASUS VP28U
    Screen Resolution
    1080p
    Hard Drives
    Primary SAMSUNG 970 EVO Plus
    PSU
    EVGA BQ 700w 80+ Bronze
    Case
    Zalman i3 NEO
    Cooling
    ARCTIC Freezer 7 X
    Keyboard
    Corsair
    Mouse
    Amazon Generic with Cord
    Internet Speed
    Download: 295.11 mbps Upload: 65.35 mbps T-Mobile Internet
    Browser
    Firefox and Edge
    Antivirus
    MS - Defender
    Other Info
    Speakers: Klipsch ProMedia 2.1
@tsgillx,

I can provide the solution to you. Before I start typing up a long, detailed procedure tell me which you would prefer...

Do you want a program that I have written that will do this for you or do you want the step-by-step procedure for properly injecting the driver yourself?

NOTE: The issue is that the driver needs to be injected into the BOOT.WIM (the Windows PE image). When you install Windows, the installation is performed using WinPE so the boot critical drivers need to be available to WinPE, not just to the main Windows image.
 

My Computers

System One System Two

  • OS
    Win11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • 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
Thank you for responding.

I just ran a test after I posted. I injected the driver in boot.wim but not in the PE (didn't work). I injected it into the Windows Setup and voila the SSD drive was recognized.

Here the solution.

I got the boot.wim from the original image

Get Index
Get-WindowsImage -ImagePath C:\Build\wim\boot.wim

Mount Image boot.wim and select Windows Setup which should be Index 2
Mount-WindowsImage -Path C:\Build\Mount\ -ImagePath C:\Build\Image\boot.wim -Index 2

Add Drivers
Add-WindowsDriver -Path C:\Build\Mount\ -Driver C:\Build\Drivers -Recurse

Unmount and Save Image
Dismount-WindowsImage -Path C:\Build\Mount\ –Save

Copied the new boot.wim into the extracted image and build a new iso. WORKS
 

My Computer

System One

  • OS
    Windows 10 Pro 21H1
Bingo. You got it!

Only part of what you said that I don't understand is the statement "I injected the driver in boot.wim but not in the PE (didn't work)." The BOOT.WIM <IS> the Win PE image.
 

My Computers

System One System Two

  • OS
    Win11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • 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
In a way you are right but when you get the boot.wim from original windows 10 pro image it contains both

You find out via powershell
Get-WindowsImage -ImagePath C:\Build\wim\boot.wim

Index 1 was PE and Index 2 the Setup. I mounted the second Index (setup) and injected the drivers into it. It didn't work with PE. Setup is used for normal windows installation for normal users.

I think PE is a special version for Thin clients or such devices. Not sure.
 

My Computer

System One

  • OS
    Windows 10 Pro 21H1
Both Index 1 and 2 are Windows PE. Index 2 is the one you want to target, but both are still Windows PE.

Setup runs in Win PE. Of that I am 100% certain. Period.

Note: If you really want to update your Windows media fully and completely, you need to target the main Windows installation image (install.wim), Win PE, and Win RE.
 

My Computers

System One System Two

  • OS
    Win11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • 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
Some more info...

For some additional insights into this, see this Microsoft Blog:


Note that in the section which updates Win PE they are updating both indices.

Please also be aware that there are bugs in the code presented there. If you ever get really deep into it, let me know and I can provide additional info. I had to write my own code to work around those bugs and Microsoft is aware of these issues, but whether they actually address this remains to be seen :-).
 

My Computers

System One System Two

  • OS
    Win11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • 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