c:\windows\System32\Sysprep\sysprep.exe /generalize /oobe /generalize /shutdown /unattend:C:\ps\autounattend.xml Dism /Capture-Image /ImageFile:C:\Win10-Build21H2-Image.wim /CaptureDir:C:\ /Name:"Windows" net use n: \\WDS\Deploymentshare$ copy C:\Win10-Build21H2-Image.wim N:\Captures