w10install/wimscripts/cleanup-wim.cmd

12 lines
340 B
Batchfile
Raw Normal View History

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