Window 10 Custom Image Storage driver


tsgillx

New member
Local time
7:39 PM
Posts
3
Visit site
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

BunnyJ

Python Programmer
Guru
VIP
Local time
10:39 PM
Posts
5,651
Location
USA TN
Visit site
OS
Windows 11 Home - 22H2
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 - 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Banna Junior 7000 - X Series
    CPU
    Ryzen 7 2700X
    Motherboard
    Asus Crosshair VII Hero, X470
    Memory
    Gskill 32GB, 16GBX2 PC3000
    Graphics Card(s)
    GeForce GTX TITAN X 12GB
    Sound Card
    Realtek (R) Audio
    Monitor(s) Displays
    ASUS VP28UQG 28" 4K, Viotek 32" 1080p
    Screen Resolution
    4K 3840 x 2160
    Hard Drives
    Primary Samsung 256 SSD
    PSU
    EVGA BQ 700w 80+ Bronze
    Case
    NZXT 510
    Cooling
    AMD Wraith Prism LED
    Keyboard
    Corsair
    Mouse
    Amazon Generic with Cord
    Internet Speed
    Download: 350.50 mbps Upload: 12.02 mbps Ping: 15ms
    Browser
    Firefox, Chrome and Edge
    Antivirus
    MS - Defender

hsehestedt

Well-known member
Power User
VIP
Local time
9:39 PM
Posts
1,451
Location
Texas, USA
Visit site
OS
Win11 Pro 22H2, Moment 2
@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 22H2, Moment 2
    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
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Win11 Pro 22H2, Moment 2
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 15-BL012DX
    CPU
    Intel i7-7500U
    Memory
    32GB
    Graphics card(s)
    Dual Intel HD 620 and Nvidia GeForce 940MX
    Sound Card
    Built-in Realtek HD Audio
    Monitor(s) Displays
    4k 15-inch
    Screen Resolution
    4k (3840 x 2160)
    Hard Drives
    1TB Seagate FireCuda 510 NVMe SSD
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    RAM Upgraded from 16GB to 32GB WiFi Upgraded from WiFi 5 to WiFi 6 SSD upgraded from 512GB NVMe SSD to 1TB Seagate FireCuda 510 NVMe SSD

tsgillx

New member
Thread Starter
Local time
7:39 PM
Posts
3
Visit site
OS
Windows 10 Pro 21H1
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

hsehestedt

Well-known member
Power User
VIP
Local time
9:39 PM
Posts
1,451
Location
Texas, USA
Visit site
OS
Win11 Pro 22H2, Moment 2
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 22H2, Moment 2
    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
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Win11 Pro 22H2, Moment 2
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 15-BL012DX
    CPU
    Intel i7-7500U
    Memory
    32GB
    Graphics card(s)
    Dual Intel HD 620 and Nvidia GeForce 940MX
    Sound Card
    Built-in Realtek HD Audio
    Monitor(s) Displays
    4k 15-inch
    Screen Resolution
    4k (3840 x 2160)
    Hard Drives
    1TB Seagate FireCuda 510 NVMe SSD
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    RAM Upgraded from 16GB to 32GB WiFi Upgraded from WiFi 5 to WiFi 6 SSD upgraded from 512GB NVMe SSD to 1TB Seagate FireCuda 510 NVMe SSD

tsgillx

New member
Thread Starter
Local time
7:39 PM
Posts
3
Visit site
OS
Windows 10 Pro 21H1
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

hsehestedt

Well-known member
Power User
VIP
Local time
9:39 PM
Posts
1,451
Location
Texas, USA
Visit site
OS
Win11 Pro 22H2, Moment 2
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 22H2, Moment 2
    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
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Win11 Pro 22H2, Moment 2
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 15-BL012DX
    CPU
    Intel i7-7500U
    Memory
    32GB
    Graphics card(s)
    Dual Intel HD 620 and Nvidia GeForce 940MX
    Sound Card
    Built-in Realtek HD Audio
    Monitor(s) Displays
    4k 15-inch
    Screen Resolution
    4k (3840 x 2160)
    Hard Drives
    1TB Seagate FireCuda 510 NVMe SSD
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    RAM Upgraded from 16GB to 32GB WiFi Upgraded from WiFi 5 to WiFi 6 SSD upgraded from 512GB NVMe SSD to 1TB Seagate FireCuda 510 NVMe SSD

hsehestedt

Well-known member
Power User
VIP
Local time
9:39 PM
Posts
1,451
Location
Texas, USA
Visit site
OS
Win11 Pro 22H2, Moment 2
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 22H2, Moment 2
    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
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Win11 Pro 22H2, Moment 2
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 15-BL012DX
    CPU
    Intel i7-7500U
    Memory
    32GB
    Graphics card(s)
    Dual Intel HD 620 and Nvidia GeForce 940MX
    Sound Card
    Built-in Realtek HD Audio
    Monitor(s) Displays
    4k 15-inch
    Screen Resolution
    4k (3840 x 2160)
    Hard Drives
    1TB Seagate FireCuda 510 NVMe SSD
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    RAM Upgraded from 16GB to 32GB WiFi Upgraded from WiFi 5 to WiFi 6 SSD upgraded from 512GB NVMe SSD to 1TB Seagate FireCuda 510 NVMe SSD

Latest Tutorials

Latest Support Threads

Top Bottom