wiki:opsi/dism

Version 3 (modified by joergs, 8 years ago) (diff)

--

dism

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

add/remove custom drivers

# Image Info
Dism /Get-ImageInfo /ImageFile:C:\test\images\install.wim

# mount
Dism /Mount-Image /ImageFile:C:\test\images\install.wim /Name:"Windows Drive" /MountDir:C:\test\offline

# get driver info
Dism /Image:C:\test\offline /Get-Drivers 

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

# add all driver from directory
Dism /Image:C:\test\offline /Add-Driver /Driver:c:\drivers /Recurse

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

# remove custom driver
Dism /Image:C:\test\offline /Remove-Driver /Driver:OEM1.inf /Driver:OEM2.inf

# umount and commit
dism /unmount-wim  /mountdir:c:\winpe64\mount /commit