w10install/wimscripts/finish-image.cmd

19 lines
586 B
Batchfile
Raw Normal View History

2020-12-24 14:58:04 +01:00
@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
2020-12-20 18:37:15 +01:00
dism /Image:%MNT% /Cleanup-Image /StartComponentCleanup /ResetBase
dism /Unmount-Wim /MountDir:%MNT% /Commit
2020-12-20 18:37:15 +01:00
2020-12-20 21:29:12 +01:00
dism /Export-Image ^
2020-12-21 16:40:22 +01:00
/SourceImageFile:%SOURCES%\install.wim ^
2020-12-21 10:45:53 +01:00
/DestinationImageFile:%SOURCES%\install_FINAL.esd ^
2020-12-21 16:40:22 +01:00
/SourceName:"Windows 10 Pro" ^
2020-12-21 10:45:53 +01:00
/Compress:Recovery ^
2020-12-20 23:30:53 +01:00
/CheckIntegrity
2020-12-20 18:37:15 +01:00