2021-01-10 15:49:37 +01:00
|
|
|
@echo off
|
|
|
|
set SOURCES=c:\TEMP\W10\sources
|
|
|
|
|
2021-03-16 23:23:06 +01:00
|
|
|
if NOT EXIST %SOURCES%\install.esd (
|
|
|
|
echo.
|
|
|
|
echo [%0] ERROR: %SOURCES%\install.esd NOT found!
|
|
|
|
exit /b
|
|
|
|
)
|
|
|
|
|
2021-01-10 15:49:37 +01:00
|
|
|
echo deleting old install.wim ...
|
|
|
|
del %SOURCES%\install.wim 1>nul 2>nul
|
|
|
|
|
2021-03-16 23:23:06 +01:00
|
|
|
echo exporting image from %SOURCES%\install.esd ...
|
2021-01-10 15:49:37 +01:00
|
|
|
dism /Export-Image ^
|
|
|
|
/SourceImageFile:%SOURCES%\install.esd ^
|
|
|
|
/DestinationImageFile:%SOURCES%\install.wim ^
|
|
|
|
/SourceName:"Windows 10 Pro" ^
|
|
|
|
/Compress:Max ^
|
|
|
|
/CheckIntegrity
|
|
|
|
|