|
用bootice编辑下。或者用bcdedit编辑。命令如下
bcdedit.exe /timeout 5
bcdedit /create {ramdiskoptions}
bcdedit /set {ramdiskoptions} ramdisksdidevice partition=C:
bcdedit /set {ramdiskoptions} ramdisksdipath \CMPE\boot.sdi
for /f "tokens=2" %%c in ('BCDEDIT /CREATE /D "优元素PE维护系统" /application OSLOADER ') do set id=%%c
bcdedit /set %id% device ramdisk=[C:]\CMPE\Win8PEx64.wim,{ramdiskoptions}
bcdedit /set %id% path \Windows\system32\boot\winload.efi
bcdedit /set %id% osdevice ramdisk=[C:]\CMPE\Win8PEx64.wim,{ramdiskoptions}
bcdedit /set %id% systemroot \Windows
bcdedit /set %id% detecthal yes
bcdedit /set %id% nx optin
bcdedit /set %id% winpe yes
bcdedit /set %id% inherit {bootloadersettings}
bcdedit /set %id% locale zh-CN
bcdedit /set %id% ems Yes
bcdedit /displayorder %id% /addlast
保存成CMD批处理
CMPE\Win8PEx64.wim是PE地址
[C:]是wim所在的盘符。
|
|