From 570a3014d3c05696ed28369f796c6cf30937d4f4 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Mon, 25 Dec 2023 13:37:25 +0100 Subject: [PATCH] move to W10 LTSC ... --- image/export-image.cmd | 16 ++++++++-------- image/mount-image.cmd | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/image/export-image.cmd b/image/export-image.cmd index fdf988d..857b6e7 100644 --- a/image/export-image.cmd +++ b/image/export-image.cmd @@ -1,8 +1,8 @@ @echo off set SOURCES=%SystemDrive%\TEMP\W10\sources set WIM=%SOURCES%\install.wim -set W10PRO=%SOURCES%\w10pro.wim -set STATEFILE=%SOURCES%\w10pro.txt +set W10WIM=%SOURCES%\w10.wim +set STATEFILE=%SOURCES%\w10done.txt if EXIST %STATEFILE% ( @@ -17,7 +17,7 @@ if EXIST %STATEFILE% ( if EXIST %WIM% ( rem cleanup ... - del /F %W10PRO% 1>nul 2>nul + del /F %W10WIM% 1>nul 2>nul echo. echo [%0] INFO: found %WIM% @@ -25,12 +25,12 @@ if EXIST %WIM% ( echo [%0] INFO: exporting image from %WIM% ... dism /Export-Image ^ /SourceImageFile:%WIM% ^ - /DestinationImageFile:%W10PRO% ^ - /SourceName:"Windows 10 Pro" ^ + /DestinationImageFile:%W10WIM% ^ + /SourceIndex:1 ^ /Compress:Max ^ /CheckIntegrity - if %ERRORLEVEL% NEQ 0 ( + if NOT EXIST %W10WIM% ( echo [%0] ERROR: while extracting %WIM% exit /b ) @@ -39,8 +39,8 @@ if EXIST %WIM% ( attrib -R %WIM% 2>nul del /F %WIM% 1>nul 2>nul - echo [%0] INFO: renaming %W10PRO% ... - move /Y %W10PRO% %WIM% + echo [%0] INFO: renaming %W10WIM% ... + move /Y %W10WIM% %WIM% echo all done >%STATEFILE% echo. diff --git a/image/mount-image.cmd b/image/mount-image.cmd index ed477fe..8f60f57 100644 --- a/image/mount-image.cmd +++ b/image/mount-image.cmd @@ -18,7 +18,7 @@ echo setting write access for install.wim ... attrib -R %SOURCES%\install.wim 2>nul echo mounting install.wim to %IMAGE% ... -dism /Mount-IMAGE /IMAGEFile:%SOURCES%\install.wim /Name:"Windows 10 Pro" /MountDir:%IMAGE% || ( +dism /Mount-IMAGE /IMAGEFile:%SOURCES%\install.wim /Index:1 /MountDir:%IMAGE% || ( echo. echo ERROR while mounting WIM file! Please unmount orphaned images: dism /Get-MountedWimInfo