w10install/wim/export-image.cmd

15 lines
354 B
Batchfile
Raw Normal View History

2021-01-10 15:49:37 +01:00
@echo off
set SOURCES=c:\TEMP\W10\sources
echo deleting old install.wim ...
del %SOURCES%\install.wim 1>nul 2>nul
echo exporting WIM image from %SOURCES%\install.esd ...
dism /Export-Image ^
/SourceImageFile:%SOURCES%\install.esd ^
/DestinationImageFile:%SOURCES%\install.wim ^
/SourceName:"Windows 10 Pro" ^
/Compress:Max ^
/CheckIntegrity