w10install/wimscripts/finish-wim.cmd

20 lines
529 B
Batchfile
Raw Normal View History

2020-12-20 21:29:12 +01:00
set SOURCES=c:\TEMP\Win10\sources
set MNT=c:\TEMP\WIM
2020-12-20 18:37:15 +01:00
dism /Image:%MNT% /Cleanup-Image /StartComponentCleanup /ResetBase
dism /Unmount-Wim /MountDir:%MNT% /Commit
2020-12-20 21:29:12 +01:00
dism /Export-Image ^
2020-12-20 18:37:15 +01:00
/SourceImageFile:%SOURCES%\install.wim ^
2020-12-20 21:29:12 +01:00
/DestinationImageFile:%SOURCES%\install_CLEAN.wim ^
/SourceIndex:1 ^
/Compress:Max ^
2020-12-20 22:22:30 +01:00
/CheckIntegrity ^
& move %SOURCES%\install_CLEAN.wim %SOURCES%\install.wim
dism /Split-Image ^
/ImageFile:%SOURCES%\install.wim ^
/SWMFile:%SOURCES%\install.swm ^
/FileSize:3800
2020-12-20 18:37:15 +01:00