Get the WIM file
information
Dism /Get-WIMInfo
/WimFile:D:\BootImage\New.wim
Mount / Unmount WIM file
Dism /Mount-WIM
/WimFile:D:\New.wim
/Name:"Microsoft Windows PE (x86)" /MountDir:c:\temp /rw
Save the changes and
close the WIM file
Dism /Unmount-WIM
/MountDir:c:\temp\newmount /Commit
Close the WIM file
without saving the changes
Dism /Unmount-WIM
/MountDir:c:\temp\newmount /Discard
Export the driver
information to a specific location
DISM
/Image:C:\temp\newmount /Export-Driver /Destination:C:\temp\export2
Adding multiple packages to
mounted wim file
Dism
/Image:E:\Win7build\Mount /Add-Package
/PackagePath:E:\Win7build\HotFixes\x64\Windows6.1-KB982018-x64.msu
/PackagePath:E:\Win7build\HotFixes\x64\Windows6.1-KB974090-x64.msu
/PackagePath:E:\Win7build\HotFixes\x64\Windows6.1-KB974476-v2-x64.msu
/PackagePath:E:\Win7build\HotFixes\x64\Windows6.1-KB975500-x64.msu
/PackagePath:E:\Win7build\HotFixes\x64\Windows6.1-KB975599-x64.msu
/PackagePath:E:\Win7build\HotFixes\x64\Windows6.1-KB975617-x64.msu /PackagePath:E:\Win7build\HotFixes\x64\Windows6.1-KB975778-x64.msu
/PackagePath:E:\Win7build\HotFixes\x64\Windows6.1-KB975806-x64.msu
/PackagePath:E:\Win7build\HotFixes\x64\Windows6.1-KB976755-x64.msu
/PackagePath:E:\Win7build\HotFixes\x64\Windows6.1-KB977632-x64.msu
/PackagePath:E:\Win7build\HotFixes\x64\Windows6.1-KB978258-x64.msu
/PackagePath:E:\Win7build\HotFixes\x64\Windows6.1-KB978526-x64.msu
Remove the driver from
Wim file
Dism /Image:E:\Mount
/Remove-Driver /Driver:iusb3xhc.inf /Driver:OEM15
Add multiple drivers
from specific location
Dism
/Image:c:\temp\newmount /Add-Driver /Driver:c:\temp\export /Recurse
/forceunsigned
Get all driver
information
Dism /Image:E:\Mount
/get-drivers /all /format:table >winpe.txt