How To: Use DISM to Manually Inject Drivers into the Boot.wim

Version 8

    Verified Product Versions

    Endpoint Manager 9.5Endpoint Manager 9.6Endpoint Manager 2016.xEndpoint Manager 2017.x

    Issue

    Sometimes it is necessary to manually inject drivers into the Boot.wim file to allow client computers to properly recognize the network card, USB3 or other devices.


    This is most easily done with the Deployment Image Servicing and Management tool, commonly known as DISM. 

    DISM is also the utility LANDESK Hardware Independent Imaging employs to install drivers during the HII step of Provisioning Templates and OSD Scripts.


     

    Resolution

     

    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:\Mount\Drivers
      C:\Mount\BootWIM
    2. Copy the drivers you wish to inject into the C:\Mount\Drivers folder
    3. Copy \Program Files(x86)\LANDESK\ManagementSuite\landesk\vboot\boot.wim to the C:\Mount folder.

     

    Execution:


    1. Open a CMD prompt as Administrator.
    2. Navigate to "C:\Mount".
    3. Use the following DISM commands to mount the Boot.wim:
      DISM /Mount-Wim /WimFile:C:\Mount\boot.wim /Index:1 /MountDir:C:\Mount\BootWIM
    4. Use the following DISM command to add the driver:
      DISM /Image:C:\Mount\BootWIM /Add-Driver /Driver:C:\Mount\Drivers /recurse
    5. Use the following DISM command to unmount the Boot.wim:
      DISM /Unmount-Wim /MountDir:C:\Mount\BootWIM /Commit


    Cleanup and Deploy

    1. Copy the newly updated Boot.WIM file from the mount folder to the \Program Files(x86)\LANDESK\ManagementSuite\landesk\vboot\ folder.
    2. If desired, you can delete the C:\Mount folder and its contents.
    3. Redeploy your PXE Rep.
    4. PXE Boot your client and verify the drivers are being correctly recognized now.