w10install/wimscripts/cleanup-wim.cmd
Michael H.G. Schmidt 070d7a3c20 .
2020-12-20 18:37:15 +01:00

12 lines
340 B
Batchfile

set SOURCES="c:\TEMP\Win10\sources"
set MNT="c:\TEMP\WIM"
dism /Image:%MNT% /Cleanup-Image /StartComponentCleanup /ResetBase
dism /Unmount-Wim /MountDir:%MNT% /Commit
dism /Compress:max /Export-Image ^
/SourceImageFile:%SOURCES%\install.wim ^
/Name:"Windows 10 Pro N" ^
/DestinationImageFile:%SOURCES%\install_CLEAN.wim