2021-01-29 21:34:08 +01:00
|
|
|
@echo off
|
|
|
|
set SOURCES=c:\TEMP\W10\sources
|
2021-03-16 23:23:06 +01:00
|
|
|
set IMAGE=c:\TEMP\IMAGE
|
2022-12-25 20:52:46 +01:00
|
|
|
set NTLITE="%ProgramFiles%\NTLite\NTLite.exe"
|
2021-01-29 21:34:08 +01:00
|
|
|
|
2021-03-16 23:23:06 +01:00
|
|
|
echo creating image mountpoint ...
|
|
|
|
mkdir %IMAGE% 1>nul 2>nul
|
2021-01-29 21:34:08 +01:00
|
|
|
|
2021-04-05 23:06:24 +02:00
|
|
|
rem set write access ...
|
|
|
|
attrib -R %SOURCES%\install.wim 2>nul
|
|
|
|
|
2022-12-25 20:52:46 +01:00
|
|
|
echo mounting install.wim to %IMAGE% ...
|
2021-03-16 23:23:06 +01:00
|
|
|
dism /Mount-IMAGE /IMAGEFile:%SOURCES%\install.wim /Name:"Windows 10 Pro" /MountDir:%IMAGE%
|
2021-01-29 21:34:08 +01:00
|
|
|
|