| | 12 | |
| | 13 | == add/remove custom drivers == |
| | 14 | |
| | 15 | * http://technet.microsoft.com/en-us/library/hh825070.aspx |
| | 16 | |
| | 17 | {{{ |
| | 18 | # Image Info |
| | 19 | Dism /Get-ImageInfo /ImageFile:C:\test\images\install.wim |
| | 20 | |
| | 21 | # mount |
| | 22 | Dism /Mount-Image /ImageFile:C:\test\images\install.wim /Name:"Windows Drive" /MountDir:C:\test\offline |
| | 23 | |
| | 24 | # get driver info |
| | 25 | Dism /Image:C:\test\offline /Get-Drivers |
| | 26 | |
| | 27 | # add driver (single) |
| | 28 | Dism /Image:C:\test\offline /Add-Driver /Driver:C:\drivers\mydriver.inf |
| | 29 | |
| | 30 | # add all driver from directory |
| | 31 | Dism /Image:C:\test\offline /Add-Driver /Driver:c:\drivers /Recurse |
| | 32 | |
| | 33 | # add unsinged driver |
| | 34 | Dism /Image:C:\test\offline /Add-Driver /Driver:C:\drivers\mydriver.inf /ForceUnsigned |
| | 35 | |
| | 36 | # remove custom driver |
| | 37 | Dism /Image:C:\test\offline /Remove-Driver /Driver:OEM1.inf /Driver:OEM2.inf |
| | 38 | |
| | 39 | # umount and commit |
| | 40 | Dism /Unmount-Image /MountDir:C:\test\offline /Commit |
| | 41 | }}} |