Solved How to add drivers at USB's WinPE


/index:2 is normally the WinPE used to install Windows. Not /index:1 (plain WinPE with no Setup).
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
Last edited:

My Computers My Computers

  • At a glance

    Win7,Win11i7-97002x16gb 3600mhz
    OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i7-9700
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x16gb 3600mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • At a glance

    win7,win11i5-84002x8gb 3200
    Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200
    PSU
    xfx pro 450

My Computer My Computer

At a glance

Windows 11 ProIntel 113700H16GBNVIDIA RTX 3050 ti
OS
Windows 11 Pro
Computer type
Laptop
Manufacturer/Model
HP Pavilion 17 cd2205nw
CPU
Intel 113700H
Memory
16GB
Graphics Card(s)
NVIDIA RTX 3050 ti
Screen Resolution
1980x1020
Hard Drives
Micron 512GB
Mouse
Logitech
Internet Speed
100Mbs
Browser
Vivaldi , Edge
Antivirus
Windows defender
When i create the image of boot.wim at C:\ , this image not contains boot.wim file to add drivers.

TO mount a wim. You have to browse to the wim file and the mount folder

dism++-bootable01jpg.webp
 

My Computers My Computers

  • At a glance

    Win7,Win11i7-97002x16gb 3600mhz
    OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i7-9700
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x16gb 3600mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • At a glance

    win7,win11i5-84002x8gb 3200
    Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200
    PSU
    xfx pro 450
To capture a wim from an applied os is different. What are you trying to do ?


You can find boot.wim in the installation media in the sources folder. It needs to be writeable so you can't do it with a mounted iso file.

Extract the contents of installation media iso somewhere writeable
 

My Computers My Computers

  • At a glance

    Win7,Win11i7-97002x16gb 3600mhz
    OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i7-9700
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x16gb 3600mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • At a glance

    win7,win11i5-84002x8gb 3200
    Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200
    PSU
    xfx pro 450
I've done some pretty extensive testing with some of this, so here is my take:

If you plan to use the $WinPeDriver$ folder OR integrate drivers into index #2 of the boot.wim, these should be BOOT CRITICAL DRIVERS ONLY. Some drivers simply will not work here and can even cause installation to fail very early in the process.

Since WinPE does NOT support WiFi (yes, it can be hacked) you should not load WiFi drivers here. Instead, integrate those drivers into your main install.wim file.
 

My Computers My Computers

  • At a glance

    Win11 Pro 25H2 (RTM+)Intel i7-14650HX32 GBNo GPU - Built-in Intel Graphics
    OS
    Win11 Pro 25H2 (RTM+)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acemagic
    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 25H2 (RTM+)Intel i7-1255U16 GBIntel Iris Xe Graphics
    Operating System
    Win11 Pro 25H2 (RTM+)
    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
    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
To capture a wim from an applied os is different. What are you trying to do ?


You can find boot.wim in the installation media in the sources folder. It needs to be writeable so you can't do it with a mounted iso file.

Extract the contents of installation media iso somewhere writeable

USB of WinPE is writable. When i extracted the boot wim at C:\ it hasnt boot.wim inside because its it self.
So no mount to USB , no mount to C:\.What you suggest ?
 

My Computer My Computer

At a glance

Windows 11 ProIntel 113700H16GBNVIDIA RTX 3050 ti
OS
Windows 11 Pro
Computer type
Laptop
Manufacturer/Model
HP Pavilion 17 cd2205nw
CPU
Intel 113700H
Memory
16GB
Graphics Card(s)
NVIDIA RTX 3050 ti
Screen Resolution
1980x1020
Hard Drives
Micron 512GB
Mouse
Logitech
Internet Speed
100Mbs
Browser
Vivaldi , Edge
Antivirus
Windows defender
Since WinPE does NOT support WiFi

Ms supplied win11 winre.wim supports wifi ( and also has the files for refresh/reset or whatever it is called ) but boot.wim does not


It should be possible to copy the sources folder from boot.wim image 2 into winre.wim plus setup.exe at the root, you might also need to flag it 9, then rename it boot.wim to match the standard bcd entry. But what is the point ?

If you want use winre.wim to install from it is easier to run something wintttsetup
 
Last edited:

My Computers My Computers

  • At a glance

    Win7,Win11i7-97002x16gb 3600mhz
    OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i7-9700
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x16gb 3600mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • At a glance

    win7,win11i5-84002x8gb 3200
    Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200
    PSU
    xfx pro 450
Ms supplied winre.wim supports wifi but boot.wim does not

Sorry , please read my first post first.
I dont want wifi. I want disk's and touchpad drivers.
 

My Computer My Computer

At a glance

Windows 11 ProIntel 113700H16GBNVIDIA RTX 3050 ti
OS
Windows 11 Pro
Computer type
Laptop
Manufacturer/Model
HP Pavilion 17 cd2205nw
CPU
Intel 113700H
Memory
16GB
Graphics Card(s)
NVIDIA RTX 3050 ti
Screen Resolution
1980x1020
Hard Drives
Micron 512GB
Mouse
Logitech
Internet Speed
100Mbs
Browser
Vivaldi , Edge
Antivirus
Windows defender
I dont want wifi. I want disk's and touchpad drivers.

I know, I was answering hsehes post about wifi.
 

My Computers My Computers

  • At a glance

    Win7,Win11i7-97002x16gb 3600mhz
    OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i7-9700
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x16gb 3600mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • At a glance

    win7,win11i5-84002x8gb 3200
    Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200
    PSU
    xfx pro 450

My Computer My Computer

At a glance

Windows 11 ProIntel 113700H16GBNVIDIA RTX 3050 ti
OS
Windows 11 Pro
Computer type
Laptop
Manufacturer/Model
HP Pavilion 17 cd2205nw
CPU
Intel 113700H
Memory
16GB
Graphics Card(s)
NVIDIA RTX 3050 ti
Screen Resolution
1980x1020
Hard Drives
Micron 512GB
Mouse
Logitech
Internet Speed
100Mbs
Browser
Vivaldi , Edge
Antivirus
Windows defender
Sorry , please read my first post first.
I dont want wifi. I want disk's and touchpad drivers.
Sorry if I missed this, but what precisely is not working? The storage driver should be easy, but for a touchpad, it sometimes requires a driver you may not expect. As an example, I have an ASUS laptop, a Lenovo laptop, and a Chuwi laptop. The touchpad does not work on any of then in Windows setup. To get the touchpad to work on those systems I do NOT install the touchpad driver in boot.wim on any of them. Instead, I need to load the "I2C" driver or the "Serial IO" driver in the case of the Lenovo because the problem is not actually with the touchpad, rather, it is with the interface that the touchpad uses for communication.

Note that this also holds true when using the $WinPeDriver$ folder.

EDIT: Just wanted to explain this a little better. Think of this like plugging a device into a USB port. You need a driver for that device, but you also need to have your USB drivers loaded. Same deal here. On most modern laptops, the touchpoad connects via what is typically called an "I2C" or "Serial IO" connection and the driver for that is typically what the problem is.
 

My Computers My Computers

  • At a glance

    Win11 Pro 25H2 (RTM+)Intel i7-14650HX32 GBNo GPU - Built-in Intel Graphics
    OS
    Win11 Pro 25H2 (RTM+)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acemagic
    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 25H2 (RTM+)Intel i7-1255U16 GBIntel Iris Xe Graphics
    Operating System
    Win11 Pro 25H2 (RTM+)
    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
    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
Sorry if I missed this, but what precisely is not working? The storage driver should be easy, but for a touchpad, it sometimes requires a driver you may not expect. As an example, I have an ASUS laptop, a Lenovo laptop, and a Chuwi laptop. The touchpad does not work on any of then in Windows setup. To get the touchpad to work on those systems I do NOT install the touchpad driver in boot.wim on any of them. Instead, I need to load the "I2C" driver or the "Serial IO" driver in the case of the Lenovo because the problem is not actually with the touchpad, rather, it is with the interface that the touchpad uses for communication.

Note that this also holds true when using the $WinPeDriver$ folder.
The 2 cases of the WinPE :
1) Install windows. There is no problem as the user can add the missed drivers.
2) Select "Repair PC". Then , the installation put the user at WinRE.
Here is the problem. When you go to WinRE and you need drivers for the disk or touchpad (in my case) , or
anything else , you cant add drivers. Also , you cant work with your disk (Restore points,Command prompt , Image restore)
because the installation dont see your disk.
Also at both cases i havent mouse cause its bluetooth , and touchpad cause the installation hasnt drivers.
Welcome to the wonderful world of Microsoft. If he were paid for the drivers, he would put all the drivers, starting with Windows 3.1.:LOL:
 

My Computer My Computer

At a glance

Windows 11 ProIntel 113700H16GBNVIDIA RTX 3050 ti
OS
Windows 11 Pro
Computer type
Laptop
Manufacturer/Model
HP Pavilion 17 cd2205nw
CPU
Intel 113700H
Memory
16GB
Graphics Card(s)
NVIDIA RTX 3050 ti
Screen Resolution
1980x1020
Hard Drives
Micron 512GB
Mouse
Logitech
Internet Speed
100Mbs
Browser
Vivaldi , Edge
Antivirus
Windows defender

My Computers My Computers

  • At a glance

    Win11 Pro 25H2 (RTM+)Intel i7-14650HX32 GBNo GPU - Built-in Intel Graphics
    OS
    Win11 Pro 25H2 (RTM+)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acemagic
    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 25H2 (RTM+)Intel i7-1255U16 GBIntel Iris Xe Graphics
    Operating System
    Win11 Pro 25H2 (RTM+)
    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
    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

My Computer My Computer

At a glance

Windows 11 ProIntel 113700H16GBNVIDIA RTX 3050 ti
OS
Windows 11 Pro
Computer type
Laptop
Manufacturer/Model
HP Pavilion 17 cd2205nw
CPU
Intel 113700H
Memory
16GB
Graphics Card(s)
NVIDIA RTX 3050 ti
Screen Resolution
1980x1020
Hard Drives
Micron 512GB
Mouse
Logitech
Internet Speed
100Mbs
Browser
Vivaldi , Edge
Antivirus
Windows defender
Follow-up:

If you are going to need to add drivers to WinPE or WinRE on a regular basis consider doing one of the following:

1) Script the process to make this an automatic process for you. I could send all the needed steps to you if you want to know how to do this yourself.

2) Use a utility to do it for you. I do this so often that I wrote my own program to do it. Option #3 as highlighted in the screenshot below adds boot critical drivers to BOTH WinPE and WinRE so everything just works :-). See hsehestedt - Overview, WIM-Tools

Image1.webp
 

My Computers My Computers

  • At a glance

    Win11 Pro 25H2 (RTM+)Intel i7-14650HX32 GBNo GPU - Built-in Intel Graphics
    OS
    Win11 Pro 25H2 (RTM+)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acemagic
    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 25H2 (RTM+)Intel i7-1255U16 GBIntel Iris Xe Graphics
    Operating System
    Win11 Pro 25H2 (RTM+)
    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
    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
Follow-up:

If you are going to need to add drivers to WinPE or WinRE on a regular basis consider doing one of the following:

1) Script the process to make this an automatic process for you. I could send all the needed steps to you if you want to know how to do this yourself.

2) Use a utility to do it for you. I do this so often that I wrote my own program to do it. Option #3 as highlighted in the screenshot below adds boot critical drivers to BOTH WinPE and WinRE so everything just works :-). See hsehestedt - Overview, WIM-Tools

View attachment 130146

At some point when I don't have anything better to do, I'll try the Microsoft learn way. The strange thing is that it says that the SDK is required, but in the process of adding drivers, it does not use the sdk.
Thanks.
 

My Computer My Computer

At a glance

Windows 11 ProIntel 113700H16GBNVIDIA RTX 3050 ti
OS
Windows 11 Pro
Computer type
Laptop
Manufacturer/Model
HP Pavilion 17 cd2205nw
CPU
Intel 113700H
Memory
16GB
Graphics Card(s)
NVIDIA RTX 3050 ti
Screen Resolution
1980x1020
Hard Drives
Micron 512GB
Mouse
Logitech
Internet Speed
100Mbs
Browser
Vivaldi , Edge
Antivirus
Windows defender

My Computers My Computers

  • At a glance

    Win7,Win11i7-97002x16gb 3600mhz
    OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i7-9700
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x16gb 3600mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • At a glance

    win7,win11i5-84002x8gb 3200
    Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200
    PSU
    xfx pro 450
Last edited:

My Computer My Computer

At a glance

Windows 11 ProIntel 113700H16GBNVIDIA RTX 3050 ti
OS
Windows 11 Pro
Computer type
Laptop
Manufacturer/Model
HP Pavilion 17 cd2205nw
CPU
Intel 113700H
Memory
16GB
Graphics Card(s)
NVIDIA RTX 3050 ti
Screen Resolution
1980x1020
Hard Drives
Micron 512GB
Mouse
Logitech
Internet Speed
100Mbs
Browser
Vivaldi , Edge
Antivirus
Windows defender
or you can use the hp winpe pack and shove them all in, but I am not sure they include the touchpad drivers in the pack
 

My Computers My Computers

  • At a glance

    Win7,Win11i7-97002x16gb 3600mhz
    OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i7-9700
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x16gb 3600mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • At a glance

    win7,win11i5-84002x8gb 3200
    Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200
    PSU
    xfx pro 450

Latest Support Threads

Back
Top Bottom