Window 10 Custom Image Storage driver


tsgillx

New member
Local time
6:20 PM
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 My Computer

At a glance

Windows 10 Pro 21H1
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 My Computer

At a glance

Windows 11 Home- RP - 26H2 -26300.9539AMD Ryzen 5 5600GG.SKILL Ripjaws V Series 64GB 4x16Nvidia geforce gtx titan x
OS
Windows 11 Home- RP - 26H2 -26300.9539
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
28" ASUS VP28U 4k
Screen Resolution
4K
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 My Computers

  • At a glance

    Win11 Pro 26H2 (Release Preview)Intel i7-14650HX32 GBNo GPU - Built-in Intel Graphics
    OS
    Win11 Pro 26H2 (Release Preview)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acemagic Matrix M5
    CPU
    Intel i7-14650HX
    Memory
    32 GB
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    Varies as machine will often be moved to locations with different monitors
    Screen Resolution
    Varies
    Hard Drives
    1 x 1TB Gen 4 NVMe SSD
    PSU
    120W Power Brick
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
  • At a glance

    Win11 Pro 26H2 (Release Preview)Intel i7-1255U16 GBIntel Iris Xe Graphics
    Operating System
    Win11 Pro 26H2 (Release Preview)
    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
    4 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging Using an Anker 160W Charger
    Keyboard
    Backlit, spill resistant keyboard
    Mouse
    Buttonless Glass Precision Touchpad
    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 My Computer

At a glance

Windows 10 Pro 21H1
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 My Computers

  • At a glance

    Win11 Pro 26H2 (Release Preview)Intel i7-14650HX32 GBNo GPU - Built-in Intel Graphics
    OS
    Win11 Pro 26H2 (Release Preview)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acemagic Matrix M5
    CPU
    Intel i7-14650HX
    Memory
    32 GB
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    Varies as machine will often be moved to locations with different monitors
    Screen Resolution
    Varies
    Hard Drives
    1 x 1TB Gen 4 NVMe SSD
    PSU
    120W Power Brick
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
  • At a glance

    Win11 Pro 26H2 (Release Preview)Intel i7-1255U16 GBIntel Iris Xe Graphics
    Operating System
    Win11 Pro 26H2 (Release Preview)
    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
    4 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging Using an Anker 160W Charger
    Keyboard
    Backlit, spill resistant keyboard
    Mouse
    Buttonless Glass Precision Touchpad
    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 My Computer

At a glance

Windows 10 Pro 21H1
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 My Computers

  • At a glance

    Win11 Pro 26H2 (Release Preview)Intel i7-14650HX32 GBNo GPU - Built-in Intel Graphics
    OS
    Win11 Pro 26H2 (Release Preview)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acemagic Matrix M5
    CPU
    Intel i7-14650HX
    Memory
    32 GB
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    Varies as machine will often be moved to locations with different monitors
    Screen Resolution
    Varies
    Hard Drives
    1 x 1TB Gen 4 NVMe SSD
    PSU
    120W Power Brick
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
  • At a glance

    Win11 Pro 26H2 (Release Preview)Intel i7-1255U16 GBIntel Iris Xe Graphics
    Operating System
    Win11 Pro 26H2 (Release Preview)
    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
    4 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging Using an Anker 160W Charger
    Keyboard
    Backlit, spill resistant keyboard
    Mouse
    Buttonless Glass Precision Touchpad
    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 My Computers

  • At a glance

    Win11 Pro 26H2 (Release Preview)Intel i7-14650HX32 GBNo GPU - Built-in Intel Graphics
    OS
    Win11 Pro 26H2 (Release Preview)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acemagic Matrix M5
    CPU
    Intel i7-14650HX
    Memory
    32 GB
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    Varies as machine will often be moved to locations with different monitors
    Screen Resolution
    Varies
    Hard Drives
    1 x 1TB Gen 4 NVMe SSD
    PSU
    120W Power Brick
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
  • At a glance

    Win11 Pro 26H2 (Release Preview)Intel i7-1255U16 GBIntel Iris Xe Graphics
    Operating System
    Win11 Pro 26H2 (Release Preview)
    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
    4 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging Using an Anker 160W Charger
    Keyboard
    Backlit, spill resistant keyboard
    Mouse
    Buttonless Glass Precision Touchpad
    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
Back
Top Bottom