win7已經沒有像xp那么簡單的boot.ini讓我們修改了,取而代之的是bcdedit。現在就簡單的說下bcdedit的常規應用吧.
開始,運行,輸入bcdedit /?可以看到幫助。
簡單的應用開始。
bcdedit
輸出內容大致如下:
復制內容到剪貼板 程序代碼
Windows 啟動管理器 //這里就是啟動菜單管理器.
--------------------
標識符 {bootmgr} //標識符就是上面說到的id.
device partition=\Device\HarddiskVolume1
description Windows Boot Manager
locale zh-CN
inherit {globalsettings}
default {current}
resumeobject {9071b05e-6b18-11e0-8140-ee2725957eb9}
displayorder {current}
{b5d09b48-5bdc-4b57-a096-7b7c6bde08f1}
{ee888888-8888-8888-8888-8888888888ee}
toolsdisplayorder {memdiag}
timeout 3
Windows 啟動加載器
-------------------
標識符 {current} //這個標識符代表的是當前默認啟動的系統,id就是{current}
device partition=C:
path \Windows\system32\winload.exe
description Windows 7 //這個就是在啟動菜單里看到的名字.
locale zh-CN
inherit {bootloadersettings}
osdevice partition=C:
systemroot \Windows
resumeobject {ba301d36-74d4-11e0-8272-a9216f3a943c}
nx OptOut
實模式啟動扇區
---------------------
標識符 {b5d09b48-5bdc-4b57-a096-7b7c6bde08f1}//這是真實id命名的一個啟動項,是maxdos8.
path \okldr.mbr
description OneKey Ghost
實模式啟動扇區
---------------------
標識符 {ee888888-8888-8888-8888-8888888888ee}
device partition=C:
path \maxldr.mbr
description MaxDOS 8
簡單的介紹完了之后,說下簡單的應用吧.
1.修改啟動項描述.
命令:
復制內容到剪貼板 程序代碼
bcdedit /set 標識符 description "描述內容"
例如我們把上面的"Windows 7"修改成"Windows7旗艦版"的命令就是
復制內容到剪貼板 程序代碼
bcdedit /set {current} description "Windows7旗艦版"
2.刪除某個啟動項.
命令:
復制內容到剪貼板 程序代碼
bcdedit /delete 標識符
例如我們刪除maxdos8的啟動項.
復制內容到剪貼板 程序代碼
bcdedit /delete {ee888888-8888-8888-8888-8888888888ee}
3.修改啟動菜單顯示時間.
命令:
復制內容到剪貼板 程序代碼
bcdedit /timeout 數字
例如我們把啟動菜單顯示時間修改為3秒.
復制內容到剪貼板 程序代碼
bcdedit /timeout 3
4.修改默認啟動菜單.
命令:
復制內容到剪貼板 程序代碼
bcdedit /default 標識符
例如我們把默認啟動項修改為maxdos8.
復制內容到剪貼板 程序代碼
bcdedit /defaulte {ee888888-8888-8888-8888-8888888888ee}
5.開啟PAE支持.
命令:
以下內容為程序代碼:
bcdedit /set標識符 PAE ForceEnable
例如我們開啟win7的PAE支持.
復制內容到剪貼板 程序代碼
bcdedit /set {current} PAE ForceEnable
6.關閉DEP文件保護.
命令:
復制內容到剪貼板 程序代碼
bcdedit.exe /set 標識符 nx AlwaysOff
例如我們關閉win7的DEP保護.
復制內容到剪貼板 程序代碼
bcdedit.exe /set {current} nx AlwaysOff
7.調整啟動菜單順序.
命令:[bcdedit /bootsequence 標識符1 標識符2 ....]
例如,我們把順序調整為maxdos8 win7...
復制內容到剪貼板 程序代碼
bcdedit /bootsequence{ee888888-8888-8888-8888-8888888888ee} {current}
也可以直接將某一個標識符調整到頂部.命令為
復制內容到剪貼板 程序代碼
bcdedit /bootsequence 標識符 /addfirst
把某一個標識符調整到最后.
復制內容到剪貼板 程序代碼
bcdedit /bootsequence 標識符 /addlast
從列表中刪除某一個標識符.
復制內容到剪貼板 程序代碼
bcdedit /bootsequence 標識符 /remove