none
Adding Nic drivers to WinPE for Windows 7

    Question

  • Hello,

     I'm new to using the AIK and creating WinPE boot disks. I'm sure this question has been asked more than once and I've done searches in the forums but not too much detail.

    I created a WinPE boot disk that I want to use to capture a custom image of Windows 7 to deploy across a new shipment of Dells. My question is that I would like to add a NIC driver to the base WinPE image.

    It is for a 64bit platform. I'm aware of the DISM command line tools, but I require some assistance. The WinPE boots fine but it requires a NIC driver for my Dell opti plex 390. I have the driver but I'm not sure how to use or when to use the DISM command to add it to the base image of the WinPE image.

    Thursday, September 08, 2011 2:27 PM

Answers

  • Use dism instead:

    Add Drivers to an Offline Image by Using DISM

    Mount the image

    Dism /Mount-Wim /WimFile:C:\test\winpe.wim 1 /MountDir:C:\test\offline

    At a command prompt, type the following command to add a specific driver to the image.

    Dism /Image:C:\test\offline /Add-Driver /Driver:C:\drivers\mydriver.INF

    Multiple drivers can be added on one command line if you specify a folder instead of an .inf file. To install all of the drivers in a folder and all its subfolders use the /recurse option. For example,

    Dism /Image:C:\test\offline /Add-Driver /Driver:c:\drivers /Recurse

     


    Revue du Geek | Déployer Windows 7 avec MDT 2010

    Thursday, September 08, 2011 6:45 PM

All replies

  • Hi,

    Check this technet reference: Add a Device Driver to an Offline Windows PE Image

    Here is an example:

    1. Mount the WIM file - WinPE holds the OS files inside a WIM file:
        imagex /mountrw <drive letter>\ISO\sources\boot.wim <destination>   

    2. Add the driver - To add the driver you will be using the peimg.exe command:
        peimg.exe /inf=<location of inf file> <location of mounted image>\Windows

    3. Unmount the image:
        imagex.exe /unmount <location of mounted image>


    Revue du Geek | Déployer Windows 7 avec MDT 2010
    Thursday, September 08, 2011 3:52 PM
  • Hi,

    Check this technet reference: Add a Device Driver to an Offline Windows PE Image

    Here is an example:

    1. Mount the WIM file - WinPE holds the OS files inside a WIM file:
        imagex /mountrw <drive letter>\ISO\sources\boot.wim <destination>   

    2. Add the driver - To add the driver you will be using the peimg.exe command:
        peimg.exe /inf=<location of inf file> <location of mounted image>\Windows

    3. Unmount the image:
        imagex.exe /unmount <location of mounted image>


    Revue du Geek | Déployer Windows 7 avec MDT 2010

    Okay, I'm on step 2 where I input the command as followed peimg /inf=c:\dell\drivers\R296762 c:\winpe_AMD64\mount\Windows and I'm prompted with 'peimg' is not recognized as an internal or external command,
    operable program or batch file.

    As for step 1. I have the boot.wim in the ISO\sources\boot.wim... where would the destination path be?
    • Edited by Luis.Lopez Thursday, September 08, 2011 4:52 PM
    Thursday, September 08, 2011 4:28 PM
  • Use dism instead:

    Add Drivers to an Offline Image by Using DISM

    Mount the image

    Dism /Mount-Wim /WimFile:C:\test\winpe.wim 1 /MountDir:C:\test\offline

    At a command prompt, type the following command to add a specific driver to the image.

    Dism /Image:C:\test\offline /Add-Driver /Driver:C:\drivers\mydriver.INF

    Multiple drivers can be added on one command line if you specify a folder instead of an .inf file. To install all of the drivers in a folder and all its subfolders use the /recurse option. For example,

    Dism /Image:C:\test\offline /Add-Driver /Driver:c:\drivers /Recurse

     


    Revue du Geek | Déployer Windows 7 avec MDT 2010

    Thursday, September 08, 2011 6:45 PM
  • Use dism instead:

    Add Drivers to an Offline Image by Using DISM

    Mount the image

    Dism /Mount-Wim /WimFile:C:\test\winpe.wim 1 /MountDir:C:\test\offline

    At a command prompt, type the following command to add a specific driver to the image.

    Dism /Image:C:\test\offline /Add-Driver /Driver:C:\drivers\mydriver.INF

    Multiple drivers can be added on one command line if you specify a folder instead of an .inf file. To install all of the drivers in a folder and all its subfolders use the /recurse option. For example,

    Dism /Image:C:\test\offline /Add-Driver /Driver:c:\drivers /Recurse

     

     


    Revue du Geek | Déployer Windows 7 avec MDT 2010

     


    Okay, it doesn't recognize the command-line option "1".

    I figured it out!! It was missing the parameter "index" before "1"

    • Edited by Luis.Lopez Thursday, September 08, 2011 7:37 PM
    Thursday, September 08, 2011 7:11 PM