Mount vhdx file Dism /Capture-Image /ImageFile:"T:\%ImageName%.wim" /CaptureDir:C:\ /Name:%ImageName% Unmount vhdx file