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 ^
|
|
|
|
/CheckIntegrity
|
2020-12-20 18:37:15 +01:00
|
|
|
|