Jump to content

  • 0

Guide: Adding drivers to a custom winPE (3.0)


Here are the command needed to add drivers to a custom WIM


1. Make sure you have Windows Automated Installation Kit installed (make sure you have the latest version)

2. Open "Deployment Tools Command Prompt" (Start -> All programs -> right click on Microsoft Windows AIK, choose Run As administrator)

3. Copy base files to c:\winpe (change x86 to amd64 for 64bit)

copype x86 c:\winpe  



4. Mount imagefile

Dism /mount-wim /wimfile:c:\winpe\winpe.wim /index:1 /mountdir:c:\winpe\mount 



5. Copy all drivers into a catalog for example c:\temp



6. Inject custom drivers

Dism /image:C:\winpe\mount /Add-Driver /driver:C:\temp /recurse  



7. Look what drivers are installed

Dism /image:C:\winpe\mount /get-drivers   


8. Save the changes

Dism /Unmount-Wim /MountDir:C:\winpe\mount /Commit  



9. Change format from Windows Image format so we can boot from the file

copy c:\winpe\winpe.wim c:\winpe\iso\sources\boot.wim 



And that is it!

You can now use this file (c:\winpe\iso\sources\boot.wim) in SCCM or burn it to a ISO (look at this post for info on that)



Edited by anyweb
added right click on Microsoft Windows AIK, choose Run As administrator

Share this post

Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Whats the difference between using dism to inject drivers into your boot image and using the options within SCCM to add drivers?


If you right click a boot image within sccm (2012 sp1) go to properties, there is a drivers tab with a starburst to add a driver.


Do these effectively do the same thing?


Thanks for any clarity you can provide.



Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.