w10install/wimscripts/cleanup-wim.cmd
Michael H.G. Schmidt 45a739396b final wimscripts...
2020-12-20 21:29:12 +01:00

14 lines
352 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 /Export-Image ^
/SourceImageFile:%SOURCES%\install.wim ^
/DestinationImageFile:%SOURCES%\install_CLEAN.wim ^
/SourceIndex:1 ^
/Compress:Max ^
/CheckIntegrity