From 45a739396b56004ae5671e0e291508357a79b5e0 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Sun, 20 Dec 2020 21:29:12 +0100 Subject: [PATCH] final wimscripts... --- wimscripts/cleanup-wim.cmd | 12 +++++++----- wimscripts/export-image.cmd | 4 ++-- wimscripts/get-wiminfo.cmd | 4 +++- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/wimscripts/cleanup-wim.cmd b/wimscripts/cleanup-wim.cmd index 77c1901..1d470f4 100644 --- a/wimscripts/cleanup-wim.cmd +++ b/wimscripts/cleanup-wim.cmd @@ -1,11 +1,13 @@ -set SOURCES="c:\TEMP\Win10\sources" -set MNT="c:\TEMP\WIM" +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 ^ +dism /Export-Image ^ /SourceImageFile:%SOURCES%\install.wim ^ - /Name:"Windows 10 Pro N" ^ - /DestinationImageFile:%SOURCES%\install_CLEAN.wim + /DestinationImageFile:%SOURCES%\install_CLEAN.wim ^ + /SourceIndex:1 ^ + /Compress:Max ^ + /CheckIntegrity diff --git a/wimscripts/export-image.cmd b/wimscripts/export-image.cmd index 8023dab..3a7d6f4 100644 --- a/wimscripts/export-image.cmd +++ b/wimscripts/export-image.cmd @@ -1,11 +1,11 @@ -set SOURCES="c:\TEMP\Win10\sources" +set SOURCES=c:\TEMP\Win10\sources del %SOURCES%\install.wim dism /Export-Image ^ /SourceImageFile:%SOURCES%\install.esd ^ - /SourceIndex:6 ^ /DestinationImageFile:%SOURCES%\install.wim ^ + /SourceIndex:6 ^ /Compress:Max ^ /CheckIntegrity diff --git a/wimscripts/get-wiminfo.cmd b/wimscripts/get-wiminfo.cmd index d8256c2..4775361 100644 --- a/wimscripts/get-wiminfo.cmd +++ b/wimscripts/get-wiminfo.cmd @@ -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