|
添加一次性启动,64位UEFI启动,可以根据自己情况调整。代码是@江南一根葱 的,稍作修改
@echo off
set PT=D:
set IMG=\Boot\Win10x64PE.wim
set sdi=\Boot\boot.sdi
set ID={19260817-6666-8888-f00d-caffee000000}
bcdedit.exe /delete %ID%
bcdedit.exe /delete "BootWim Once"
bcdedit.exe /create {ramdiskoptions} /d "Wim Ramdisk"
REM bcdedit.exe /create {bootmgr} /d "Windows Boot Manager"
bcdedit.exe /set {ramdiskoptions} ramdisksdidevice partition=%PT%:
bcdedit.exe /set {ramdiskoptions} ramdisksdipath %sdi%
bcdedit.exe -create %ID% /d "BootWim Once" /application osloader
bcdedit.exe -set %ID% device ramdisk="[%PT%]%IMG%,{ramdiskoptions}"
bcdedit.exe -set %ID% osdevice ramdisk="[%PT%]%IMG%,{ramdiskoptions}"
bcdedit.exe -set %ID% path \Windows\system32\boot\winload.efi
bcdedit.exe -set %ID% Locale zh-CN
bcdedit.exe -set %ID% systemroot \Windows
bcdedit.exe -set %ID% detecthal yes
bcdedit.exe -set %ID% winpe yes
bcdedit.exe -set %ID% pae forceenable
bcdedit.exe /bootsequence %ID% /addlast
echo OK
bcdedit.exe /enum %ID%
pause
|
评分
-
查看全部评分
|