w10install/wimscripts/finish-image.cmd
Michael H.G. Schmidt 5064e18944 .
2020-12-24 14:58:04 +01:00

19 lines
586 B
Batchfile

@set SOURCES=c:\TEMP\Win10\sources
@set MNT=c:\TEMP\WIM
@rd /S /Q %MNT%\Windows\Setup\scripts 1>nul 2>nul
@mkdir %MNT%\Windows\Setup\scripts 1>nul 2>nul
copy /Y SetupComplete*.cmd %MNT%\Windows\Setup\scripts
copy /Y SetupComplete*.ps1 %MNT%\Windows\Setup\scripts
dism /Image:%MNT% /Cleanup-Image /StartComponentCleanup /ResetBase
dism /Unmount-Wim /MountDir:%MNT% /Commit
dism /Export-Image ^
/SourceImageFile:%SOURCES%\install.wim ^
/DestinationImageFile:%SOURCES%\install_FINAL.esd ^
/SourceName:"Windows 10 Pro" ^
/Compress:Recovery ^
/CheckIntegrity