Solved How to add drivers at USB's WinPE


Wondering if you do each step correct ?
Here are the screenshots for all the commands , with the given order.
The copy of boot.wim at the f:\mount , not included.

1743707933694.webp

1743708036639.webp

1743708053963.webp

1743708071740.webp

1743708274161.webp

1743708312242.webp

1743708335724.webp



Dont forget to copy the new boot.wim , to your installation media.

1743708409903.webp
 

Attachments

  • 1743708148772.webp
    1743708148772.webp
    17.4 KB · Views: 0

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've never tried DISM++, maybe because I have this hangup about trying to always use native Windows or Microsoft stuff where I can, but I think that I better check it out to at least familiarize myself with what it can do. It seems that a lot of people really like it.
The same here. I dont want to play my System's Setup and Restore with third party apps.
 

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
DISM++ is fine as a tool. The problem is it's not open-source, and nobody really knows who the Chinese devs are. They don't exactly manage a website to identify themselves and allow the ability to report bugs and get support.

Some users don't care about that, and are happy. But the pool of Windows experts who know DISM is probably greater if you need help.
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
DISM++ is fine as a tool. The problem is it's not open-source, and nobody really knows who the Chinese devs are. They don't exactly manage a website to identify themselves and allow the ability to report bugs and get support.

Some users don't care about that, and are happy. But the pool of Windows experts who know DISM is probably greater if you need help.

And all this risk of bugs or ill-intentioned intervention, so as not to execute about 10 commands with copy/paste.
 

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
Nonsense I have been using dism++ for years.
 

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
Hi!
I don´t know if it works for you but i do like this:

  1. I create a folder, extract drivers to there (is supose to create another folder with drivers name)
  2. i have this batch:
  3. Code:
    @echo off
    title Drivers Tool
    setlocal EnableDelayedExpansion
    
    :: BatchGotAdmin
    :-------------------------------------
    REM  --> Check for permissions
        IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
    >nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
    ) ELSE (
    >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
    )
    
    REM --> If error flag set, we do not have admin.
    if '%errorlevel%' NEQ '0' (
        @echo. & @echo. & @echo [1m[31mRequesting administrative privileges...[0m
        goto UACPrompt
    ) else ( goto gotAdmin )
    
    :UACPrompt
        echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
        set params= %*
        echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params:"=""%", "", "runas", 1 >> "%temp%\getadmin.vbs"
    
        "%temp%\getadmin.vbs"
        del "%temp%\getadmin.vbs"
        exit /B
    
    
    :gotAdmin
    ::To CD to the location of the batch script file (%0)
    CD /d "%~dp0"
    Set /p dir="Drivers folder name: "
    Set /p dest="Offline mounted image root: "
    CD /D "%dir%"
    FOR /F "TOKENS=*" %%A IN ('DIR /S /B "*.inf"') DO Dism /Image:"%dest%" /Add-Driver /Driver:"%%A"
    endlocal
    @echo Done!
    @echo.
    pause
    exit
  4. Copy/Save code as .bat and paste in the main folder, not drivers folder .
  5. Execute it!

Note: Desteny must be a mounted Offline image! And .exe drivers can be extracted! ( can use 7z, winrar, etc)

I hope it helps.
You can eliminate any the logic for parsing through all the drivers and installing them one at a time by just telling DISM to recurse all folders. It will automagically install all drivers in the folder and subfolders.

Example:

DISM /Image:C:\Mount /Add-Driver /Driver:C:\Drivers /Recurse
 

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
In addition, you can cut down the check to see if the batch file is run elevated and auto-restart it elevated if it is not with a single line like this:

(Fsutil Dirty Query %SystemDrive%>Nul)||(PowerShell start """%~f0""" -verb RunAs & Exit /B)
 

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
You can eliminate any the logic for parsing through all the drivers and installing them one at a time by just telling DISM to recurse all folders. It will automagically install all drivers in the folder and subfolders.

Example:

DISM /Image:C:\Mount /Add-Driver /Driver:C:\Drivers /Recurse
Yes. But the objective was a specific driver.
 

My Computer My Computer

At a glance

Windows 11 Pro for Workstations13th Gen Intel(R) Core(TM) i7-1355U 1.70 GHz16GBIntel(R) Iris(R) Xe Graphics
OS
Windows 11 Pro for Workstations
Computer type
Laptop
Manufacturer/Model
Acer
CPU
13th Gen Intel(R) Core(TM) i7-1355U 1.70 GHz
Memory
16GB
Graphics Card(s)
Intel(R) Iris(R) Xe Graphics
Sound Card
Realtek Audio
Monitor(s) Displays
Monitor PnP Genérico
Hard Drives
KINGSTON_OM8SEP4512Q-AA
Internet Speed
1000MBps
Yes. But the objective was a specific driver.
Maybe I misunderstood. It looked to me like the for loop was iterating through all drivers rather than installing just one.

Apologies for the confusion.
 

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

Latest Support Threads

Back
Top Bottom