Skip to content
Tech Shizz Logo

An Engineers Blog

  • TechShizz
  • blog

Injecting Drivers into an install.wim using DISM

Posted on February 23, 2021 By rich No Comments on Injecting Drivers into an install.wim using DISM

When using Windows Deployment Server to roll out a new OS, if the driver of the NIC is not in the standard install.wim the installation will fail with this error.

“WdsClient: An error occurred while obtaining an IP address from DHCP server. Please check to ensure that there is an operational DHCP server on this network segment”.

WDS comes with the option to add Drivers to the WIM through
the GUI but seems to fail for all 57 variants of the drivers.

Here are
the steps to setup for and inject the drivers into the boot.wim file with DISM.

Preparation

1.      
Create the following folders on the root of the
C drive:

C:Mount
C:MountDrivers
C:MountBootWIM

2.      
Copy the drivers you wish to inject into the
C:MountDrivers folder

3.       NB; the drivers need to be the INF files
and not the EXEÂ’s..

      then copy your original boot.wim to the C:Mount folder.


         Execution

1.      
Open the Deployment and Imaging Tools
Environment command prompt, from the Windows Kits start menu folder, as
Administrator.

2.      
Navigate to “C:Mount”.

3.      
Use the following DISM commands to mount the
Boot.wim:

DISM
/Mount-Wim /WimFile:C:Mountboot.wim /Index:2 /MountDir:C:MountBootWIM

4.      
Use the following DISM command to add the
driver:

DISM
/Image:C:MountBootWIM /Add-Driver /Driver:C:MountDrivers /recurse

5.      
Use the following DISM command to unmount the
Boot.wim:

DISM
/Unmount-Wim /MountDir:C:MountBootWIM /Commit

Once this is done you can add the amended boot.wim to your
Boot Images in WDS

Post navigation

❮ Previous Post: Office 365 Client Connection Troubleshooting
Next Post: How to Stop Windows 7 or 8 from Downloading Windows 10 Automatically ❯

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Subscribe to our newsletter!

Recent Posts

  • How to implement a lightning-fast ransomware playbook
  • How to achieve defence in depth in your business
  • How to implement a SecOps team phishing response plan
  • How to block an Office 365 Sign-in correctly
  • Microsoft finally patched serious Exchange 0-day over a month old!

Recent Comments

    Archives

    • November 2022
    • July 2021
    • March 2021
    • February 2021

    Categories

    • Cyber Security
    • Uncategorized

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org

    Copyright © 2023 .

    Theme: Oceanly News Dark by ScriptsTown