Changes between Version 3 and Version 4 of opsi/dism
- Timestamp:
- Jun 10, 2013, 1:23:04 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
opsi/dism
v3 v4 16 16 17 17 {{{ 18 # set variables 19 # in this example: winpe 3.x, 64bit, boot 20 set wim=c:\winpe64\ISO\sources\boot.wim 21 set md=c:\winpe64\mount 22 18 23 # Image Info 19 Dism /Get-ImageInfo /ImageFile: C:\test\images\install.wim24 Dism /Get-ImageInfo /ImageFile:%wim% 20 25 21 26 # mount 22 Dism /Mount-Image /ImageFile:C:\test\images\install.wim /Name:"Windows Drive" /MountDir:C:\test\offline 27 dism /Mount-Wim /WimFile:%wim% /index:1 /MountDir:%md% 23 28 24 29 # get driver info 25 Dism /Image: C:\test\offline/Get-Drivers30 Dism /Image:%md% /Get-Drivers 26 31 27 32 # add driver (single) 28 Dism /Image: C:\test\offline/Add-Driver /Driver:C:\drivers\mydriver.inf33 Dism /Image:%md% /Add-Driver /Driver:C:\drivers\mydriver.inf 29 34 30 35 # add all driver from directory 31 Dism /Image: C:\test\offline/Add-Driver /Driver:c:\drivers /Recurse36 Dism /Image:%md% /Add-Driver /Driver:c:\drivers /Recurse 32 37 33 38 # add unsinged driver 34 Dism /Image: C:\test\offline/Add-Driver /Driver:C:\drivers\mydriver.inf /ForceUnsigned39 Dism /Image:%md% /Add-Driver /Driver:C:\drivers\mydriver.inf /ForceUnsigned 35 40 36 41 # remove custom driver 37 Dism /Image: C:\test\offline/Remove-Driver /Driver:OEM1.inf /Driver:OEM2.inf42 Dism /Image:%md% /Remove-Driver /Driver:OEM1.inf /Driver:OEM2.inf 38 43 39 44 # umount and commit 40 dism /unmount-wim /mountdir: c:\winpe64\mount/commit45 dism /unmount-wim /mountdir:%md% /commit 41 46 }}}