final wimscripts...

This commit is contained in:
Michael H.G. Schmidt 2020-12-20 21:29:12 +01:00
parent 218ae1be4c
commit 45a739396b
3 changed files with 12 additions and 8 deletions

View File

@ -1,11 +1,13 @@
set SOURCES="c:\TEMP\Win10\sources" set SOURCES=c:\TEMP\Win10\sources
set MNT="c:\TEMP\WIM" set MNT=c:\TEMP\WIM
dism /Image:%MNT% /Cleanup-Image /StartComponentCleanup /ResetBase dism /Image:%MNT% /Cleanup-Image /StartComponentCleanup /ResetBase
dism /Unmount-Wim /MountDir:%MNT% /Commit dism /Unmount-Wim /MountDir:%MNT% /Commit
dism /Compress:max /Export-Image ^ dism /Export-Image ^
/SourceImageFile:%SOURCES%\install.wim ^ /SourceImageFile:%SOURCES%\install.wim ^
/Name:"Windows 10 Pro N" ^ /DestinationImageFile:%SOURCES%\install_CLEAN.wim ^
/DestinationImageFile:%SOURCES%\install_CLEAN.wim /SourceIndex:1 ^
/Compress:Max ^
/CheckIntegrity

View File

@ -1,11 +1,11 @@
set SOURCES="c:\TEMP\Win10\sources" set SOURCES=c:\TEMP\Win10\sources
del %SOURCES%\install.wim del %SOURCES%\install.wim
dism /Export-Image ^ dism /Export-Image ^
/SourceImageFile:%SOURCES%\install.esd ^ /SourceImageFile:%SOURCES%\install.esd ^
/SourceIndex:6 ^
/DestinationImageFile:%SOURCES%\install.wim ^ /DestinationImageFile:%SOURCES%\install.wim ^
/SourceIndex:6 ^
/Compress:Max ^ /Compress:Max ^
/CheckIntegrity /CheckIntegrity

View File

@ -1,2 +1,4 @@
dism /Get-WimInfo /WimFile:D:\sources\install.esd set SOURCES=c:\TEMP\Win10\sources
dism /Get-WimInfo /WimFile:%SOURCES%\install.wim