Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Win7 BCD 引導錯誤修復 BAT 腳本(WinPE 環境適用)

編輯:Windows 7 系統介紹

Win7 無法開機提示 BCD 引導錯誤,可在 WinPE 下執行 BAT 腳本重建引導項。

建立修復腳本

  1. 新建文字檔貼入以下代碼,存為 修復BCD引導.bat(假設系統在 C 槽,否則修改 partition=C:):
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
  1. U 啟動進入 WinPE → 執行該 BAT → 重開機驗證。

腳本可保留備用,同類引導損壞通用。亦可搭配 DiskGenius 重建 MBR 雙重保險。

Copyright © Windows教程網 All Rights Reserved