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