capture image file using dism code example
Example 1: capture image file using dism
Dism /Capture-Image /ImageFile:"D:\Images\Fabrikam.wim" /CaptureDir:C:\ /Name:Fabrikam
Example 2: capture image file using dism
DISM /image:C:\ /optimize-image /boot