使用bcdedit 更改windows vista 的启动顺序,并用bootsect 删除启动管理器

下了个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:/windows/system32,执行bcdedit /v命令

E:/Windows/System32>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                    /Windows/system32/winload.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:/Windows/System32>bcdedit /default {466f5a88-0af2-4f76-9038-095b170dc21c}
操作成功完成。

查看一下启动选项:

E:/Windows/System32>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                    /Windows/system32/winload.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:/Windows/System32>bcdedit /timeout 0
操作成功完成。

4.将Vista的选项清除

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

//然后就可以将E盘的Vista直接删除了。最好是格式化。

 

接下来必须处理Vista遗留下来的BootManager:
☆ 使用 Daemon Tools 加载 Vista 光盘映像
☆ 打开“运行” (开始〉运行), 输入 cmd
☆ 输入 X: (X代表你的虚拟光驱盘符)
☆ 输入 cd boot
☆ 输入 bootsect /nt52 SYS (使用启动修复程序改变系统盘启动管理器)
☆ 重新启动, Vista 的 启动管理器已经消失了
☆ 删除在启动盘中的:
*Boot 文件夹
*Boot.BAK
*bootmgr
*BOOTSECT.BAK

 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值