This commit is contained in:
Michael H.G. Schmidt 2020-12-20 18:37:15 +01:00
parent 8f8159f3de
commit 070d7a3c20
3 changed files with 21 additions and 2 deletions

View File

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

View File

@ -1,3 +1,6 @@
mkdir C:\WIM
dism /Mount-Wim /WimFile:install.wim /Name:"Windows 10 Pro N" /MountDir:C:\wim
set SOURCES="c:\TEMP\Win10\sources"
set MNT="c:\TEMP\WIM"
mkdir %MNT%
dism /Mount-Wim /WimFile:%SOURCES%\install.wim /Name:"Windows 10 Pro N" /MountDir:%MNT%

View File

@ -0,0 +1,5 @@
set SOURCES="c:\TEMP\Win10\sources"
set MNT="c:\TEMP\WIM"
dism /Unmount-Wim /MountDir:%MNT% /Discard