1. Open Notepad, then copy and paste the following code, and save it as "Repair BCD Boot.bat"; (Note that the following code is based on the system on the C drive. If not, please change the C in partition=C: to another drive. symbol);
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. Then execute this file under WinPE, as shown below:
Through the above method, you can repair the BCD boot error bat code of Win7 Ultimate Edition. You can keep this BAT file later and use it when needed.