Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

Win7 旗艦版 BCD 引導錯誤修復:命令列腳本 (bat) 一鍵重建引導

編輯:關於 Windows

Win7 新裝常遇 BCD 引導錯誤無法開機。無 Windows 引導修復工具時,可用命令腳本修復:

  1. 記事本貼上下列指令存為 修復BCD引導.bat (假設系統在 C 槽,否則修改 partition=C:)。
  2. WinPE 下以管理員身分執行該 bat 檔,重建 BCD 引導項目。
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

執行後重建引導,保留 bat 檔備用。

Copyright © Windows教程網 All Rights Reserved