Win7 Ultimate uses commands to fix BCD boot errors. bat

  

Win7 common faults have BCD boot errors that prevent booting. Normally, it is most likely to occur during new installations. How do you solve this problem? In fact, we can fix this problem through the Windows boot repair software in WinPE. However, if there is no such tool in the U disk boot disk, it can be solved by command. The following are the commands to fix the boot.

1, open Notepad, then copy and paste the following code, save as "repair BCD boot.bat"; (Note that the following code is based on the system in the C drive, if not please change partition=C: Change C to another drive letter);

path C:\\Windows\\system32

bcdedit /store C:\\boot\\bcd /create {bb68514c-cff8-11dd-aca9-a775dac50ae8 } /d “Microsoft Windows 7” /application osloader

bcdedit /store C:\\boot\\bcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} device partition=C:

bcdedit /store C:\\boot\\bcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} path \\Windows\\system32\\winload.exe

bcdedit /store C:\\boot\\bcd /set { Bb68514c-cff8-11dd-aca9-a775dac50ae8} locale zh-CN

bcdedit /store C:\\boot\\bcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} inherit {bootloadersettings}

bcdedit /store C:\\boot\\bcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} osdevice partition=C:

bcdedit /store C:\\boot\\ Bcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} systemroot \\Windows

bcdedit /store C:\\boot\\bcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} nx optin

bcdedit /store C:\\boot\\bcd /displayorder {bb68514c-cff8-11dd-aca9-a775dac50ae8} /addlast

bcdedit /store C:\\boot\\bcd /timeout 5

pause

2, then execute this file under WinPE, as shown below:

By the above method, you can repair Win7 Ultimate BCD boot error bat code. You can also keep this BAT file and use it when you need it.

Copyright © Windows knowledge All Rights Reserved