|
首先你要知道bcdedit -create创建的GUID, 然后如下命令:
bcdedit /set {NewGUID} device ramdisk=[c:]\sources\boot.wim,{ramdiskoptions}
bcdedit /set {NewGUID} path \windows\system32\boot\winload.exe
bcdedit /set {NewGUID} osdevice ramdisk=[c:]\sources\boot.wim,{ramdiskoptions}
bcdedit /set {NewGUID} systemroot \windows
bcdedit /set {NewGUID} winpe yes
bcdedit /set {NewGUID} detecthal yes
bcdedit /displayorder {NewGUID} /addlast
Now when you boot the system, an extra boot option "Windows PE boot" is presented and can be used to boot from c:\sources\boot.wim |
|