locked
Adding Nic drivers to WinPE for Windows 7 RRS feed

  • 问题

  • 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.

    2011年9月8日 14:27

答案

全部回复

  • 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
    2011年9月8日 15:52
  • 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?
    2011年9月8日 16:28
  • 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

    2011年9月8日 18:45
  • 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"

    2011年9月8日 19:11