DISM : Misc. WIM Management Commands

DISM.exe (Deployment Image Servicing and Management) is a command-line tool that can be used to service a Windows image or to prepare a Windows Preinstallation Environment (Windows PE) image.  DISM can be used to service a Windows image (.wim) or a virtual hard disk (.vhd or .vhdx). Clean old mountpoints • Dism /cleanup-wim Mount-Image • Dism /Mount-Image /ImageFile:C:\DISM\myimage.wim /index:1 /MountDir:C:\DISM\offline Add-Package • Dism /Add-Package /Image:C:\test\offline\Windows /PackagePath:C:\MSU\Windows10-KBxxxxxxx-x64.msu /LogPath:AddPackage.log Add Driver • DISM /Image:C:\test\offline /Add-Driver /Driver:C:\test\PS2x64 /recurse • DISM /Image:C:\test\offline /Add-Driver /Driver:C:\test\PS2x64\.inf Unmount-Image • Dism /unmount-image /mountdir:c:\test\offline /commit Enable Windows Feature •…

Read More