Integrate drivers into boot.wim

Place boot.wim on c:\iso\sources

Copy all drivers to c:\drivers

Deployment Tools from ADK 10 must be installed

Open "Deployment and Imaging Tools Environment" in "Run As Administrator" mode

Create working directory:
if not exist c:\mount md c:\mount
Take a look how much indexes boot image contains:
dism /get-wiminfo /wimfile:c:\iso\sources\boot.wim
Mount boot image:
dism /mount-wim /wimfile:c:\iso\sources\boot.wim /index:1 /mountdir:c:\mount
Slipstream drivers:
dism /image:c:\mount /add-driver /driver:c:\drivers /recurse
Umount image:
dism /unmount-wim /mountdir:c:\mount /commit
Make the image as small as possible:
"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\DISM\dism.exe" /Export-Image /SourceImageFile:c:\iso\sources\boot.wim /SourceIndex:1 /DestinationImageFile:c:\boot.wim /Compress:max
Remove working directory:
if exist c:\mount rd c:\mount /q /s
New boot.wim is located on "c:\boot.wim"

No comments: