1. 程式人生 > >使用bcdedit 更改windows vista 的啟動順序

使用bcdedit 更改windows vista 的啟動順序

2006-10-10

下了個windows vista試用,等我旅遊一趟回來,發現要啟用。但我又沒有啟用碼,所以連作業系統都進不去。vista安裝後更改了啟動順序,將vista 設為預設啟動。這樣我每次啟動電腦一不留神就跑vista裡面去了,而又不能用。檢視XP的boot順序,根本連vista的選項都沒有。這就是說,我無法更改啟動順序,而預設卻總引導到一個我不能用的vista?

檢視XP的boot.ini,發現vista加了個註釋:

; ;Warning: Boot.ini is used on Windows XP and earlier operating systems. ;Warning: Use BCDEDIT.exe to modify Windows Vista boot options. ;

因此找到裝vista的E盤的windows/system32目錄,

使用bcdedit.exe來更改啟動選項。

該程式是字元介面。選項很多。經過摸索,成功更改了啟動順序,並刪除vista的啟動選項,手工將vista直接從硬碟中清除。

1.在cmd模式下,切換到 e:windowssystem32,執行bcdedit /v命令

E:WindowsSystem32>bcdedit /v

Windows Boot Manager
--------------------
identifier              {9dea862c-5cdd-4e70-acc1-f32b344d4795}
device                  partition=C:
description             Windows Boot Manager
locale                  en-US
inherit                 {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}
default                 {77c363ea-4851-11db-9098-ba68b5106fc5}
displayorder            {466f5a88-0af2-4f76-9038-095b170dc21c}
                        {77c363ea-4851-11db-9098-ba68b5106fc5}
toolsdisplayorder       {b2721d73-1db4-4c62-bf78-c548a880142d}
timeout                 30

Windows Legacy OS Loader
------------------------
identifier              {466f5a88-0af2-4f76-9038-095b170dc21c}
device                  partition=C:
path                    ntldr
description             Earlier Version of Windows

Windows Boot Loader
-------------------
identifier              {77c363ea-4851-11db-9098-ba68b5106fc5}
device                  partition=E:
path                    Windowssystem32winload.exe
description             Microsoft Windows Vista
locale                  en-US
inherit                 {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
osdevice                partition=E:
systemroot              Windows
resumeobject            {77c363eb-4851-11db-9098-ba68b5106fc5}
nx                      OptIn

看到了Windows Legacy OS Loader的identifier 為 {466f5a88-0af2-4f76-9038-095b170dc21c}

2.執行下面的命令,將預設啟動選項改為XP:

E:WindowsSystem32>bcdedit /default {466f5a88-0af2-4f76-9038-095b170dc21c} 操作成功完成。

檢視一下啟動選項:

E:WindowsSystem32>bcdedit

Windows Boot Manager
--------------------
identifier              {bootmgr}
device                  partition=C:
description             Windows Boot Manager
locale                  en-US
inherit                 {globalsettings}
default                 {ntldr}
displayorder            {ntldr}
                        {77c363ea-4851-11db-9098-ba68b5106fc5}
toolsdisplayorder       {memdiag}
timeout                 30

Windows Legacy OS Loader
------------------------
identifier              {ntldr}
device                  partition=C:
path                    ntldr
description             Earlier Version of Windows

Windows Boot Loader
-------------------
identifier              {77c363ea-4851-11db-9098-ba68b5106fc5}
device                  partition=E:
path                    Windowssystem32winload.exe
description             Microsoft Windows Vista
locale                  en-US
inherit                 {bootloadersettings}
osdevice                partition=E:
systemroot              Windows
resumeobject            {77c363eb-4851-11db-9098-ba68b5106fc5}
nx                      OptIn

3.更改timeout時間

E:WindowsSystem32>bcdedit /timeout 0 操作成功完成。

4.將Vista的選項清除

E:WindowsSystem32>bcdedit /delete {77c363ea-4851-11db-9098-ba68b5106fc5} 操作成功完成。

然後就可以將E盤的Vista直接刪除了。最好是格式化。

如非註明轉載, 均為原創. 本站遵循知識共享CC協議,轉載請註明來源