wiki:opsi/dism

Version 5 (modified by joergs, on Jun 12, 2013 at 6:33:52 PM) ( diff )

--

dism

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
Note: See TracWiki for help on using the wiki.