Last modified 4 years ago Last modified on 06/12/13 18:33:52


Enable- and disable Windows features, in installer image or on running system.

add/remove custom drivers

# set variables
# in this example: winpe 3.x, 64bit, boot
set wim=c:\winpe64\ISO\sources\boot.wim
set md=c:\winpe64\mount

# Image Info
Dism /Get-ImageInfo /ImageFile:%wim%

# mount
dism /Mount-Wim /WimFile:%wim% /index:1 /MountDir:%md%

# get driver info
Dism /Image:%md% /Get-Drivers 

# add driver (single)
Dism /Image:%md% /Add-Driver /Driver:C:\drivers\mydriver.inf

# add all driver from directory
Dism /Image:%md% /Add-Driver /Driver:c:\winpe64\driver\intel-nic /Recurse

# add unsinged driver
Dism /Image:%md% /Add-Driver /Driver:C:\drivers\mydriver.inf /ForceUnsigned

# remove custom driver
Dism /Image:%md% /Remove-Driver /Driver:OEM1.inf /Driver:OEM2.inf

# umount and commit
dism /unmount-wim  /mountdir:%md% /commit