24 lines
552 B
Batchfile
24 lines
552 B
Batchfile
@echo off
|
|
set SOURCES=c:\TEMP\W10\sources
|
|
set IMAGE=c:\TEMP\IMAGE
|
|
set NTLITE="%ProgramFiles%\NTLite\NTLite.exe"
|
|
|
|
rem check for wim file ...
|
|
if NOT EXIST %SOURCES%\boot.wim (
|
|
echo ERROR: [ %SOURCES%\boot.wim ] NOT FOUND!
|
|
echo ABORT.
|
|
exit /b
|
|
) else (
|
|
cd image
|
|
)
|
|
|
|
echo creating image mountpoint ...
|
|
mkdir %IMAGE% 1>nul 2>nul
|
|
|
|
rem set write access ...
|
|
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%
|
|
|