|
你添加的参数不对
Windows多启动数据配置工具bcdedit命令详解
- 命令举例:
- 1、添加Windows XP启动菜单
- bcdedit /create {ntldr} /d "Windows XP"
- bcdedit /set {ntldr} device partition=D:
- bcdedit /set {ntldr} path \ntldr
- bcdedit /set {ntldr} inherit {bootloadersettings}
- bcdedit /set {ntldr} locale zh-CN
- bcdedit /displayorder {ntldr} /addfirst
- 2、添加Windows 7启动菜单
- bcdedit /create /d "Windwos 7 旗舰版" /application osloader
- #这条命令完后会返回一个GUID值,如 {255f2870-8c47-11e1-9764-f50784d59432}
- bcdedit /set {255f2870-8c47-11e1-9764-f50784d59432} device partition=E:
- bcdedit /set {255f2870-8c47-11e1-9764-f50784d59432} path \windows\system32\winload.exe
- bcdedit /set {255f2870-8c47-11e1-9764-f50784d59432} osdevice partition=E:
- bcdedit /set {255f2870-8c47-11e1-9764-f50784d59432} systemroot \windows
- bcdedit /set {255f2870-8c47-11e1-9764-f50784d59432} inherit {bootloadersettings}
- bcdedit /set {255f2870-8c47-11e1-9764-f50784d59432} locale zh-CN
- bcdedit /displayorder {255f2870-8c47-11e1-9764-f50784d59432} /addlast
- 3、添加wim映像(windows PE)启动菜单
- bcdedit /create {ramdiskoptions}
- bcdedit /set {ramdiskoptions} ramdisksdidevice partition=C:
- bcdedit /set {ramdiskoptions} ramdisksdipath \boot\boot.sdi
- #以上命令是先在 BCD 存储中创建 {ramdisktoptions} 对象,其中partition=C:表示wim映像所在的分区
- bcdedit /create /d "启动 Windows PE" /application osloader
- #这条命令完后会返回一个GUID值,如{b4323e91-a380-11e2-b02c-005056c00008}
- bcdedit /set {b4323e91-a380-11e2-b02c-005056c00008} device ramdisk=[C:]\boot\winpe.wim,{ramdiskoptions}
- bcdedit /set {b4323e91-a380-11e2-b02c-005056c00008} path \windows\system32\winload.exe
- bcdedit /set {b4323e91-a380-11e2-b02c-005056c00008} osdevice ramdisk=[C:]\boot\winpe.wim,{ramdiskoptions}
- bcdedit /set {b4323e91-a380-11e2-b02c-005056c00008} systemroot \windows
- #以下命令是启动到 Windows 预安装环境 (Windows PE)所需
- bcdedit /set {b4323e91-a380-11e2-b02c-005056c00008} winpe Yes
- bcdedit /set {b4323e91-a380-11e2-b02c-005056c00008} detecthal Yes
- #以上命令是启动到 Windows 预安装环境 (Windows PE)所需
- bcdedit /set {b4323e91-a380-11e2-b02c-005056c00008} inherit {bootloadersettings}
- bcdedit /set {b4323e91-a380-11e2-b02c-005056c00008} locale zh-CN
- bcdedit
复制代码
|
|