|  | 
| 本帖最后由 zhaohj 于 2014-11-12 17:45 编辑 
 :w8pe
 kernel http://${next-server}:81/wimboot
 initrd http://${next-server}:81/w8pe/bcd w8pe/bcd
 initrd http://${next-server}:81/w8pe/w8pe.sdi w8pe/w8pe.sdi
 initrd http://${next-server}:81/w8pe/W8BCD bootmgr.exe
 initrd http://${next-server}:81/w8pe/w8pe1.wim w8pe/w8pe1.wim
 boot
 与上图一样效果
 是否是这个bcd只能包含wim文件的菜单?
 原来的bcd是这样生成的:
 echo off
 
 set d01=Windows8 PE (w8pe.wim)  by one1
 set f01=ramdisk=[boot]\w8pe\W8pe.WIM,{ramdiskoptions}
 
 set d02=Windows8 PE (w8pe1.wim) by one2
 set f02=ramdisk=[boot]\w8pe\W8pe1.WIM,{ramdiskoptions}
 
 set d03=Windows8 PE (w8pe2.wim) by coolg
 set f03=ramdisk=[boot]\w8pe\W8pe2.WIM,{ramdiskoptions}
 
 set d04=grub4dos
 set f04=\grldr
 
 set d05=Local system
 set f05=\boot\startrom.com
 
 set d06=mem test
 set f06=\boot\memtest.exe
 
 set d00=pxelinux.0 (linux)
 set f00=\pxelinux.0
 
 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传输块大小
 rem bcdedit /store bcd /set {ramdiskoptions} ramdisktftpblocksize 2048
 rem TFTP窗口大小
 rem bcdedit /store bcd /set {ramdiskoptions} ramdisktftpwindowsize 100
 
 for /f "tokens=1,2 delims={}" %%i in ('Bcdedit -store bcd -create /d "%d01%" /application osloader ') do SET GUID1=%%j
 bcdedit -store bcd /set {%GUID1%} systemroot  \windows
 bcdedit -store bcd /set {%GUID1%} path  \windows\system32\boot\winload.exe
 bcdedit -store bcd /set {%GUID1%} locale zh-CN
 bcdedit -store bcd /set {%GUID1%} winpe  yes
 bcdedit -store bcd /set {%GUID1%} detecthal yes
 bcdedit -store bcd /set {%GUID1%} device  %f01%
 bcdedit -store bcd /set {%GUID1%} osdevice  %f01%
 bcdedit  -store bcd /displayorder {%GUID1%} /addlast
 
 for /f "tokens=1,2 delims={}" %%i in ('bcdedit -store bcd -create /d "%d02%" /application osloader ') do SET GUID1=%%j
 bcdedit -store bcd /set {%GUID1%} systemroot  \windows
 bcdedit -store bcd /set {%GUID1%} path \windows\system32\boot\winload.exe
 bcdedit -store bcd /set {%GUID1%} locale zh-CN
 bcdedit -store bcd /set {%GUID1%} winpe  yes
 bcdedit -store bcd /set {%GUID1%} detecthal yes
 bcdedit -store bcd /set {%GUID1%} device  %f02%
 bcdedit -store bcd /set {%GUID1%} osdevice  %f02%
 bcdedit  -store bcd /displayorder {%GUID1%} /addlast
 
 for /f "tokens=1,2 delims={}" %%i in ('bcdedit -store bcd -create /d "%d03%" /application osloader ') do SET GUID1=%%j
 bcdedit -store bcd /set {%GUID1%} systemroot  \windows
 bcdedit -store bcd /set {%GUID1%} path \windows\system32\boot\winload.exe
 bcdedit -store bcd /set {%GUID1%} locale zh-CN
 bcdedit -store bcd /set {%GUID1%} winpe  yes
 bcdedit -store bcd /set {%GUID1%} detecthal yes
 bcdedit -store bcd /set {%GUID1%} device  %f03%
 bcdedit -store bcd /set {%GUID1%} osdevice  %f03%
 bcdedit  -store bcd /displayorder {%GUID1%} /addlast
 
 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%
 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 /set {%GUID1%} nointegritychecks yes
 bcdedit -store bcd /displayorder {%GUID1%} /addlast
 
 for /f "tokens=1,2 delims={}" %%i in ('Bcdedit -store bcd -create {memdiag} /d "%d06%" ') do SET GUID1=%%j
 bcdedit -store bcd /set {%GUID1%} device boot
 bcdedit -store bcd /set {%GUID1%} PATH %f06%
 bcdedit -store bcd /set {%GUID1%} locale zh-CN
 bcdedit /store bcd /set {%GUID1%} nointegritychecks yes
 bcdedit -store bcd /displayorder {%GUID1%} /addlast
 
 for /f "tokens=1,2 delims={}" %%i in ('Bcdedit -store BCD -create /d "%d00%" /application startup ') do SET GUID1=%%j
 bcdedit -store BCD /set {%GUID1%} device boot
 bcdedit -store BCD /set {%GUID1%} PATH %f00%
 bcdedit -store bcd /set {%GUID1%} pxesoftreboot yes
 bcdedit -store bcd /displayorder {%GUID1%} /addlast
 
 pause
 bcdedit /enum all /store bcd
 del /a:h bc?.log
 pause
 | 
 |