How to add multiple inf drivers to a Windows PE Image?
To add a single driver to a Windows PE Image is quite straight forward but adding multiple drivers one by one is not ideal or else it will take a definite amount of time.
Dism command provides an option to add a single driver or add multiple drivers.
To add a single driver or multiple drivers, the first thing to do is to mount the image for editing.
Dism /Mount-Image /ImageFile:"C:\WinPE_amd64\sources\boot.wim" /index:1 /MountDir:"C:\WinPE_amd64\mount"
C:\WinPE_amd64\media\sources\boot.wim - is the image where the new drivers will be added
C:\WinPE_amd64\mount - this directory will contain the extracted files of wim images, the folder must be created if it doesn't exist
Once the image has been mounted, to add a single driver type the command below:
Dism /Add-Driver /Image:"C:\WinPE_amd64\mount" /Driver:"C:\Folder_Driver\driver.inf"
C:\WinPE_amd64\mount - the folder in which the mount is located
C:\Folder_Driver\driver.inf - inf file or driver location
To add multiple drivers:
Dism /Add-Driver /Image:"C:\WinPE_amd64\mount" /Driver:D:\net-driver\netinf /Recurse
/Recurse - is the option that will look or add the drivers that is available on the folder path.
To verify the drivers:
Dism /Get-Drivers /Image:"C:\WinPE_amd64\mount"
This will show the added drivers if there were no errors.
Once everything has been verified, image should be unmounted and any changes will be added to the image.
Dism /Unmount-Image /MountDir:"C:\WinPE_amd64\mount" /commit
WinPE drivers are specific to WinPE also, any driver that is not for WinPE may not work.
The DISM command will work without any issues at an elevated command prompt.
Cheers..till next time.
================================
Free Android Apps:
Click links below to find out more:
Excel Keyboard guide:
Heaven's Dew Fall Prayer app for Android :
Catholic Rosary Guide for Android:
Comments
Post a Comment