bcdedit /create {ffffffff-8d96-11de-8e71-ffffffffffff} /d "系统维护" /device
bcdedit /create {ffffffff-8d96-11de-8e71-fffffffffffe} /d "系统维护" /application osloader
bcdedit /set {ffffffff-8d96-11de-8e71-ffffffffffff} ramdisksdidevice partition=E:
bcdedit /set {ffffffff-8d96-11de-8e71-ffffffffffff} ramdisksdipath \WinPE_x64\Boot\boot.sdi
bcdedit /set {ffffffff-8d96-11de-8e71-fffffffffffe} device ramdisk=[E:]\WinPE_x64\Sources\boot.wim,{ffffffff-8d96-11de-8e71-ffffffffffff}
bcdedit /set {ffffffff-8d96-11de-8e71-fffffffffffe} path \windows\system32\boot\winload.exe
bcdedit /set {ffffffff-8d96-11de-8e71-fffffffffffe} description "系统维护"
bcdedit /set {ffffffff-8d96-11de-8e71-fffffffffffe} locale en-US
bcdedit /set {ffffffff-8d96-11de-8e71-fffffffffffe} inherit {bootloadersettings}
bcdedit /set {ffffffff-8d96-11de-8e71-fffffffffffe} osdevice ramdisk=[E:]\WinPE_x64\Sources\boot.wim,{ffffffff-8d96-11de-8e71-ffffffffffff}
bcdedit /set {ffffffff-8d96-11de-8e71-fffffffffffe} systemroot \windows
bcdedit /set {ffffffff-8d96-11de-8e71-fffffffffffe} detecthal Yes
bcdedit /set {ffffffff-8d96-11de-8e71-fffffffffffe} winpe Yes
bcdedit /set {ffffffff-8d96-11de-8e71-fffffffffffe} ems no
bcdedit /displayorder {ffffffff-8d96-11de-8e71-fffffffffffe} /addlast
bcdedit /timeout 3
注意:如果添加失败或错误后,移除错误的选项后,可能需要使用Bcdedit delete {guid号} 删除使用过的guid号