1、打開記事本,然后復制粘貼以下代碼,另存為“修復BCD引導.bat”;(注意以下代碼以系統(tǒng)在C盤的為準,如果不是請更改partition=C:中的C改為其他盤符);
path C:Windowssystem32
bcdedit /store C:bootbcd /create {bb68514c-cff8-11dd-aca9-a775dac50ae8} /d “Microsoft Windows 7” /application osloader
bcdedit /store C:bootbcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} device partition=C:
bcdedit /store C:bootbcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} path Windowssystem32winload.exe
bcdedit /store C:bootbcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} locale zh-CN
bcdedit /store C:bootbcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} inherit {bootloadersettings}
bcdedit /store C:bootbcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} osdevice partition=C:
bcdedit /store C:bootbcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} systemroot Windows
bcdedit /store C:bootbcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} nx optin
bcdedit /store C:bootbcd /displayorder {bb68514c-cff8-11dd-aca9-a775dac50ae8} /addlast
bcdedit /store C:bootbcd /timeout 5
pause
2、然后在WinPE下執(zhí)行這個文件,如下圖:
通過上述方法操作,就可以修復Win7旗艦版BCD引導錯誤bat代碼。之后還可以把這個BAT文件留著,需要時還可以用。