다운로드
스크립트 더 보기,
더보기
@prompt $s
@cd /d "%~dp0"
@color 1f
@mode con cols=200 lines=3000
for /f "tokens=* usebackq" %%a in (`"dir /o:n /b *.wim"`) do (set wim="%%a" & goto mount)
:mount
if exist mount rd/q/s mount
md mount
dism /mount-wim /wimfile:%wim% /index:1 /mountdir:mount
setlocal enabledelayedexpansion
for /f %%a in ('dir /b /s driver\*.??_') do (
set file=%%a
expand -r !file!
move /y !file:~0,-1! !file!
)
dism /Image:mount /Add-Driver /Driver:driver /Recurse /ForceUnsigned
dism.exe /Commit-Wim /mountdir:mount
dism /unmount-wim /mountdir:mount /discard || @(takeown /f mount /r /d y & icacls mount /grant administrators:F /t )
rd /q /s mount
explorer .