|
本帖最后由 令狐大虾 于 2019-3-3 16:05 编辑
批处理灌注及写入引导(缺点是无法个性化启动菜单)
- @ECHO OFF&color 1f & CD /D %~DP0 & TITLE 释放64W10.wim
- >NUL 2>&1 REG.exe query "HKU\S-1-5-19" || (
- ECHO SET UAC = CreateObject^("Shell.Application"^) > "%TEMP%\Getadmin.vbs"
- ECHO UAC.ShellExecute "%~f0", "%1", "", "runas", 1 >> "%TEMP%\Getadmin.vbs"
- "%TEMP%\Getadmin.vbs"
- DEL /f /q "%TEMP%\Getadmin.vbs" 2>NUL
- Exit /b
- )
- @echo ★ 一、按任意键释放64W10.wim ★&pause>nul
- if exist imagex.exe (
- imagex /apply 64W10.wim 1 G
- ) else (
- dism /Apply-Image /ImageFile:64W10.wim /Index:1 /ApplyDir:G:\
- )
- bcdboot g:\windows /l zh-cn
- @echo ★★★ 文件已经释放完毕请按任意键退出 ★★★&pause>nul
复制代码 |
|