move to W10 LTSC ...
This commit is contained in:
parent
87648252da
commit
570a3014d3
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user