|
标记一下,pxe引导文件是win8的pxeboot.n12情况下,转grldr及Local System(本地硬盘系统):
......
set d04=grub4dos
set f04=\grldr
set d05=Local system
set f05=\boot\startrom.com
del bcd
bcdedit /createstore bcd
bcdedit /store bcd /create {bootmgr} /d "Windows Boot Manager"
bcdedit /store bcd /set {bootmgr} timeout 10
rem bcdedit /store bcd /set {bootmgr} graphicsmodedisabled yes
bcdedit -store bcd /set {bootmgr} locale zh-CN
rem 数字签名
bcdedit /store bcd /set {bootmgr} nointegritychecks yes
bcdedit /store bcd /create {ramdiskoptions}
bcdedit /store bcd /set {ramdiskoptions} ramdisksdidevice boot
bcdedit /store bcd /set {ramdiskoptions} ramdisksdipath \w8pe\w8pe.sdi
rem TFTP传输块大小
bcdedit /store bcd /set {ramdiskoptions} ramdisktftpblocksize 2048
rem TFTP窗口大小
bcdedit /store bcd /set {ramdiskoptions} ramdisktftpwindowsize 8192
for /f "tokens=1,2 delims={}" %%i in ('Bcdedit -store bcd -create /d "%d04%" /application bootsector ') do SET GUID1=%%j
bcdedit -store bcd /set {%GUID1%} device boot
bcdedit -store bcd /set {%GUID1%} PATH %f04%
rem bcdedit -store bcd /set {%GUID1%} graphicsmodedisabled yes
bcdedit -store bcd /displayorder {%GUID1%} /addlast
for /f "tokens=1,2 delims={}" %%i in ('Bcdedit -store bcd -create /d "%d05%" /application startup ') do SET GUID1=%%j
bcdedit -store bcd /set {%GUID1%} device boot
bcdedit -store bcd /set {%GUID1%} PATH %f05%
bcdedit -store bcd /set {%GUID1%} locale zh-CN
bcdedit -store bcd /set {%GUID1%} pxesoftreboot yes
bcdedit -store bcd /displayorder {%GUID1%} /addlast
pause
bcdedit /enum all /store bcd
pause |
|