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

使用 BCDEdit 修改 Windows Vista 開機選單完整指南

編輯:Windows Vista 教學

Windows Vista 引入全新開機架構:Windows Boot Manager (Bootmgr.exe) 取代 NTLDR,配合 Boot Configuration Data (BCD) 取代 Boot.ini,實現硬體獨立性與多系統無縫整合。管理 BCD 的命令列工具即為 BCDEdit.exe。

BCDEdit 基本操作

  • 工具位於 Windows\System32,需以系統管理員權限執行命令提示字元。
  • BCD 中每個物件擁有唯一 GUID:{legacy}(舊版 Windows)、{default}(預設 OS)、{current}(目前分區)、{xxxxxxxx-xxxx-...}(其他 OS 分區)。

常用指令速查

指令說明
bcdedit /? 顯示說明
bcdedit /enum all列出所有開機項目與 GUID
bcdedit /export "D:\BCD Backup"備份 BCD 至指定路徑
bcdedit /import "D:\BCD Backup"還原備份
bcdedit /set {legacy} description "Windows XP Pro SP2"修改舊版 OS 顯示名稱
bcdedit /set {current} description "Windows Vista Build 5270"修改目前 OS 顯示名稱
bcdedit /default {GUID}設定預設開機 OS
bcdedit /displayorder {legacy} {current}調整開機選單顯示順序
bcdedit /timeout 15設定等待秒數(預設 30 秒)

修復分區結構錯誤

若修改導致分區結構混亂,可嘗試:

  1. X:\boot\bootsect.exe -lh -all(X 為開機分區)
  2. bcdedit /set {GUID} device partition=X:
  3. bcdedit /set {GUID} osdevice partition=X:(需與上一指令配對)

提醒:操作前務必備份 BCD,手動輸入長 GUID 易出錯導致無法開機。

Copyright © Windows教程網 All Rights Reserved