﻿{"id":280,"date":"2010-06-12T18:41:14","date_gmt":"2010-06-12T10:41:14","guid":{"rendered":"http:\/\/nick.workao.org\/?p=280"},"modified":"2010-06-12T18:41:14","modified_gmt":"2010-06-12T10:41:14","slug":"windows-7-bcdedit-exe%e5%90%af%e5%8a%a8%e7%ae%a1%e7%90%86%e5%99%a8%e7%9f%a5%e8%af%86%e5%92%8c%e5%b8%b8%e7%94%a8%e8%af%ad%e6%b3%95%e8%ae%b2%e8%a7%a3","status":"publish","type":"post","link":"http:\/\/nick.txtcc.com\/index.php\/other\/280","title":{"rendered":"windows 7 bcdedit.exe(\u542f\u52a8\u7ba1\u7406\u5668)\u77e5\u8bc6\u548c\u5e38\u7528\u8bed\u6cd5\u8bb2\u89e3"},"content":{"rendered":"<p>\u8fd9\u662f\u4e00\u7bc7windows 7 bcdedit.exe(\u542f\u52a8\u7ba1\u7406\u5668)\u57fa\u672c\u8bed\u6cd5\u8bb2\u89e3\u7684\u6587\u7ae0\uff0c\u662f\u4f7f\u7528windows 7 bcdedit.exe(\u542f\u52a8\u7ba1\u7406\u5668)\u7684\u57fa\u7840\u6587\u7ae0\uff0c\u5982\u679c\u60f3\u8981\u5165\u95e8bcdedit.exe(\u542f\u52a8\u7ba1\u7406\u5668)\uff0c\u5fc5\u987b\u4e86\u89e3\u672c\u6587\u63d0\u5230\u7684\u57fa\u672c\u53c2\u6570\u4f7f\u7528\u8bed\u6cd5\u3002\u5982\u679c\u60f3\u8981\u521b\u5efaBCD\u6587\u4ef6\uff0c\u53ef\u4ee5\u53c2\u8003\u6770\u8da3\u7f51\u5fd7\u7684\u53e6\u5916\u4e00\u7bc7\uff1a\u4f7f\u7528windows 7 bcdedit.exe(\u542f\u52a8\u7ba1\u7406\u5668)\u521b\u5efaBCD\u6587\u4ef6\u6559\u7a0b\u3002<\/p>\n<p>bcdedit.exe\u662fwindows 7\u7cfb\u7edf\u81ea\u5e26\u7684\u4e00\u4e2a\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u7528\u6765\u5b9a\u5236windows boot manager\uff0c\u5b98\u65b9\u7684\u8bf4\u6cd5\u662f\uff1aBCDEDIT \u2013 \u542f\u52a8\u914d\u7f6e\u6570\u636e\u5b58\u50a8\u7f16\u8f91\u5668\u3002\u5b83\u4f4d\u4e8ex:\\windows\\system32\u76ee\u5f55\u4e0b\uff08X\uff1a\u4e3a\u64cd\u4f5c\u7cfb\u7edf\u5b89\u88c5\u76ee\u5f55\uff09\u3002\u53ef\u4ee5\u4f7f\u7528bcdedit.exe\u6765\u7f16\u8f91mac os x ,ubuntu\uff0cwindows\u7b49\u591a\u7cfb\u7edf\u542f\u52a8\u83dc\u5355\u3002<\/p>\n<p>BCD\u8981\u8d77\u4f5c\u7528\u8fd8\u5fc5\u987b\u4f9d\u8d56\u4e8eX:\\BOOT\u6587\u4ef6\u5939\u53caX:\\BOOTMGR\u8fd9\u4e2a\u6587\u4ef6\u3002\u5176\u4e2dX:\\BOOTMGR\u662f\u771f\u6b63\u7684\u5f00\u673a\u5f15\u5bfc\u7a0b\u5e8f\uff0c\u800cX: \\BOOT\u6587\u4ef6\u5939\u4e2d\u6709\u4e00\u4e2a\u540d\u4e3aBCD\u7684\u6587\u4ef6,\u5b9e\u9645\u4e0a\u6211\u4eec\u901a\u5e38\u6240\u8bf4\u7684\u7cfb\u7edf\u7684\u542f\u52a8\u83dc\u5355\uff0c\u5c31\u662f\u4ee5\u7cfb\u7edfbcd\u6587\u4ef6\u7684\u5f62\u5f0f\u800c\u5b58\u5728\u7684\uff0c\u4e5f\u5c31\u662f\u8bf4\u7cfb\u7edfbcd\u5c31\u662f\u4e00\u4e2a\u6587\u4ef6\u3002\u4ee5\u53ca\u4e00\u4e2a\u540d\u4e3aFONT\u7684\u6587\u4ef6\u5939\uff0c\u91cc\u9762\u542b\u6709\u7528\u4e8e\u5f00\u673a\u5f15\u5bfc\u83dc\u5355\u7684\u663e\u793a\u7684\u5b57\u4f53\u6587\u4ef6\u3002 bcdedit.exe\u7684\u529f\u80fd\u5f3a\u5927\uff0c\u53c2\u6570\u975e\u5e38\u591a\uff0c\u4e0b\u9762\u6211\u5c31\u8bb2\u89e3\u4e0bbcdedit.exe\u7684\u5e38\u7528\u529f\u80fd\u3002<\/p>\n<p>\u4e0b\u9762\u5c31\u5bf9bcdedit \u51c6\u5907\u77e5\u8bc6\u548c\u5e38\u7528\u8bed\u6cd5\u8fdb\u884c\u8bb2\u89e3<\/p>\n<p>bcdedit\u4e0d\u4f46\u80fd\u5bf9\u7cfb\u7edfbcd(boot configuration data)\u8fdb\u884c\u64cd\u4f5c\uff0c\u5b83\u4e5f\u80fd\u5bf9\u6587\u4ef6bcd\u8fdb\u884c\u64cd\u4f5c\uff0c\u53ef\u4ee5\u4f7f\u7528bcdedit \/store\u53c2\u6570\u6765\u4fee\u6539\u5907\u4efd\u7684BCD\u6587\u4ef6\u3002<\/p>\n<pre><code>1).bcdedit \u7684\u6253\u5f00\u65b9\u5f0f\u548c\u5e38\u7528\u8bed\u6cd5\u5e2e\u52a9\u67e5\u8be2\u547d\u4ee4\n&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&ndash;\n\u6253\u5f00bcdedit\uff1aWindows 7\uff08vista\uff09\u4e0b\u5f00\u59cb\u8fd0\u884cbcdedit\u547d\u4ee4\uff0c\u6216\u8005\u5728cmd\u547d\u4ee4\u63d0\u793a\u7b26\u65b0\u7a97\u53e3\u8f93\u5165bcdedit \u547d\u4ee4\u3002\nbcdedit\u5e2e\u52a9\uff1a\nbcdedit \/?\n\u6709\u5173\u672c\u5e2e\u52a9\u6587\u4ef6\u4e2d\u6309\u5b57\u6bcd\u987a\u5e8f\u6392\u5217\u7684\u4e3b\u9898\u5217\u8868\uff0c\u8bf7\u8fd0\u884c &ldquo;bcdedit \/? TOPICS&rdquo;\n\u8fd0\u884c bcdedit \/? ID \u53ef\u83b7\u5f97\u6709\u5173\u8fd9\u4e9b\u547d\u4ee4\u4f7f\u7528\u7684\u6807\u8bc6\u7b26\u7684\u4fe1\u606f\u3002\n\n2)bcdedit \u67e5\u770b\uff08\u8f93\u51fa\uff09BCD\u6587\u4ef6\u64cd\u4f5c\u547d\u4ee4\n&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&ndash;\n\/enum \u5217\u51fa\u5728\u50a8\u5b58\u4e2d\u7684\u5217\u8868\u9879\u76ee\u3002\n\n\u5217\u51fa\u6240\u6709\u7684\u64cd\u4f5c\u7cfb\u7edf\u8f7d\u5165\u7a0b\u5e8f\u542f\u52a8\u9879\u76ee:\nbcdedit \/enum OSLOADER\n\n\u5217\u51fa\u6240\u6709\u7684\u542f\u52a8\u7ba1\u7406\u9879\u76ee:\nbcdedit \/enum BOOTMGR\n\n\u5217\u51fa\u9ed8\u8ba4\u7684\u542f\u52a8\u9879\u76ee:\nbcdedit \/enum {default}\n\n\u5217\u51fa\u6307\u5b9a\u7684\u64cd\u4f5c\u7cfb\u7edf\u542f\u52a8\u9879\u76ee:\nbcdedit \/enum {c91b3c76-2c13-11df-9104-005056c00008}\n\n\/v \u5217\u51fa\u6240\u6709\u6d3b\u52a8\u7684\u9879\u76ee\nbcdedit \/enum ACTIVE \/v\n\n\u5355\u72ec\u8fd0\u884c &ldquo;bcdedit&rdquo; \u7b49\u540c\u4e8e\u8fd0\u884c &ldquo;bcdedit \/enum ACTIVE&rdquo;\n\n3)bcdedit \u50a8\u5b58\uff08\u521b\u5efa\u3001\u5907\u4efd\u3001\u8fd8\u539f\uff09BCD\u6587\u4ef6\u64cd\u4f5c\u6307\u4ee4\n&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&ndash;\n\/createstore \u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7a7a\u767d\u542f\u52a8\u914d\u7f6e\u6570\u636e\u6587\u4ef6\uff08BCD\u6587\u4ef6\uff09\u3002\nbcdedit \/createstore C:\\yourdata\\BCD \u521b\u5efaBCD\u542f\u52a8\u914d\u7f6e\u6570\u636e\u6587\u4ef6\u50a8\u5b58\u5230&ldquo;C:\\yourdata\\&rdquo;\u6587\u4ef6\u5939\u4e0b\u3002\n\n\/export \u5907\u4efd\u542f\u52a8\u914d\u7f6e\u6570\u636e\u6587\u4ef6\u3002\nbcdedit \/export &ldquo;C:\\yourdata\\BCDBackup&rdquo; \u5907\u4efd\u5f53\u524d\u7cfb\u7edfBCD\u542f\u52a8\u914d\u7f6e\u6587\u4ef6\u5230&ldquo;C:\\yourdata\\&rdquo;\u6587\u4ef6\u5939\u4e0b\uff0c\u5e76\u4ee5&ldquo;BCDBackup&rdquo;\u547d\u540d\u3002\n\n\/import \u8fd8\u539f\u542f\u52a8\u914d\u7f6e\u6570\u636e\u6587\u4ef6\u3002\nbcdedit \/import &ldquo;C:\\yourdata\\BCDBackup&rdquo; \u5c06&ldquo;C:\\yourdata\\&rdquo;\u6587\u4ef6\u5939\u4e0b\u7684\u7684\u7cfb\u7edfbcd\u6587\u4ef6\u5907\u4efd\u6587\u4ef6BCDBackup\u6062\u590d\u5230\u7cfb\u7edfBCD\u542f\u52a8\u914d\u7f6e\u6587\u4ef6\u3002\n\n4)bcdedit \u50a8\u5b58\uff08\u590d\u5236\u3001\u521b\u5efa\u3001\u5220\u9664\uff09BCD\u83dc\u5355\u64cd\u4f5c\u6307\u4ee4\n&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&ndash;\n\/copy \u9879\u76ee\u62f7\u8d1d\n\n\/copy \u64cd\u4f5c\u7cfb\u7edf\u542f\u52a8\u9879\u76ee\u7684\u62f7\u8d1d\uff08\u590d\u5236\uff09:\nbcdedit \/copy {c91b3c76-2c13-11df-9104-005056c00008} \/d &ldquo;Copy of entry&rdquo;\n\n\/create \u65b0\u5efa\u9879\u76ee\n\n\/create \u521b\u5efa\u64cd\u4f5c\u7cfb\u7edf\u8f7d\u5165\u7a0b\u5e8f\u9879\u76ee\u7684 NTLDR(Ntldr):\nbcdedit \/create {ntldr} \/d &ldquo;Earlier Windows OS Loader&rdquo;\n\n\u521b\u5efa\u5b58\u50a8\u5668\u78c1\u789f\u53e6\u5916\u7684\u9009\u62e9\u9879\u9879\u76ee:\nbcdedit \/create {ramdiskoptions} \/d &ldquo;Ramdisk options&rdquo;\n\n\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u64cd\u4f5c\u7cfb\u7edf\u542f\u52a8\u9879\u76ee:\nbcdedit \/create \/d &ldquo;Windows Vista&rdquo; \/application osloader\n\n\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u8c03\u8bd5\u5668:\nbcdedit \/create {dbgsettings} \/d &ldquo;Debugger Settings&rdquo;\n\n\/delete \u5220\u9664\u9879\u76ee\n\n\u5220\u9664\u6307\u5b9a\u7684\u64cd\u4f5c\u7cfb\u7edf\u9879\u76ee:\nbcdedit \/delete {c91b3c76-2c13-11df-9104-005056c00008}\n\n\u5220\u9664\u6307\u5b9a\u7684\u64cd\u4f5c\u7cfb\u7edf\u9879\u76ee\u4f46\u542f\u52a8\u65f6\u4e0d\u663e\u793a\u9879\u76ee\uff08\u5f7b\u5e95\u5220\u9664\uff09:\nbcdedit \/delete {c91b3c76-2c13-11df-9104-005056c00008} \/cleanup\n\n\u5220\u9664\u6307\u5b9a\u7684\u64cd\u4f5c\u7cfb\u7edf\u9879\u76ee\u4f46\u542f\u52a8\u65f6\u663e\u793a\u9879\u76ee:\nbcdedit \/delete {c91b3c76-2c13-11df-9104-005056c00008} \/nocleanup\n\n\u5220\u9664\u64cd\u4f5c\u7cfb\u7edf\u8f7d\u5165\u7a0b\u5e8f\u9879\u76ee\u7684 NTLDR:\nbcdedit \/delete {ntldr} \/f\n\n5)bcdedit (\u8bbe\u5b9a\u3001\u66f4\u6539\u3001\u5220\u9664 \uff09\u9879\u76ee\u9009\u62e9\u64cd\u4f5c\u6307\u4ee4\n&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&ndash;\n\/deletevalue \u5220\u9664\u9879\u76ee\u9009\u62e9\u9879\u3002\n\n\u5220\u9664\u542f\u52a8\u7ba1\u7406\u7684bootmgr\u9009\u62e9\u9879\u9879\u76ee:\nbcdedit \/deletevalue {bootmgr} bootsequence\n\n\u5220\u9664(WinPE)\u64cd\u4f5c\u7cfb\u7edf\u7684\u6570\u503c\u5f00\u673a\u9879\u76ee:\nbcdedit \/deletevalue winpe\n\n\u5220\u9664\u6765\u81ea\u6307\u5b9a\u7684\u64cd\u4f5c\u7684 Windows PE \u6570\u503c\u7cfb\u7edf\u5f00\u673a\u9879\u76ee:\nbcdedit \/deletevalue {c91b3c76-2c13-11df-9104-005056c00008} winpe\n\n\/set \u8bbe\u5b9a\u9879\u76ee\u9009\u62e9\u9879\u6570\u503c\u3002\n\n\u8bbe\u5b9a\u64cd\u4f5c\u7cfb\u7edf&ldquo;{c91b3c76-2c13-11df-9104-005056c00008}&rdquo;\u5f15\u5bfc\u5206\u533a&ldquo;C&rdquo;:\nbcdedit \/set {c91b3c76-2c13-11df-9104-005056c00008} device partition=C:\n\n\u6307\u5b9a\u7684\u64cd\u4f5c\u7cfb\u7edf\u5f15\u5bfc\u6587\u4ef6&ldquo; windows\\ system 32\\ winload.exe&rdquo;:\nbcdedit \/set {c91b3c76-2c13-11df-9104-005056c00008} path \\windows\\system32\\winload.exe\n\n\u8bbe\u5b9a&ldquo;NX&rdquo;\u4e3a&ldquo;OptIn&rdquo;:\nbcdedit \/set nx optin\n\n\u66f4\u6539\u7cfb\u7edf\u5f15\u5bfc\u83dc\u5355\u540d\u79f0\n\n\u9ed8\u8ba4XP\u7cfb\u7edf\u540d\u79f0\u5728Windows 7\u542f\u52a8\u7ba1\u7406\u5668\u4e2d\u662f&rdquo;earlier version of Windows&rdquo;,\u66f4\u6539:\nbcdedit \/set {ntldr} Description &ldquo;Windows XP Professional SP3&Prime;\n\n\u9ed8\u8ba4Vista\u7cfb\u7edf\u540d\u79f0\u5728Windows 7\u542f\u52a8\u7ba1\u7406\u5668\u4e2d\u662f&rdquo;Microsoft Windows&rdquo;,\u66f4\u6539:\nbcdedit \/set {current} Description &ldquo;Windows Vista ultimate&rdquo;\n\n\u9ed8\u8ba4boot think \u521b\u5efa\u7684\u7cfb\u7edf\u540d\u79f0\u5728Windows 7\u542f\u52a8\u7ba1\u7406\u5668\u4e2d\u662f&rdquo;boot think&rdquo;,\u66f4\u6539:\nbcdedit \/set {ID} Description &ldquo;Mac OS X Snow Leopard&rdquo;\n\n6)\u4e3a\u4e00\u4e2a\u542f\u52a8\u5e94\u7528\u7a0b\u5e8f\u63a7\u5236\u7d27\u6025\u5904\u7406\u670d\u52a1\u7684\u6307\u4ee4\n&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&ndash;\n\/bootems\n\u5f00\u542f\u542f\u52a8\u7ba1\u7406\u7d27\u6025\u5904\u7406\u670d\u52a1:\nbcdedit \/bootems {bootmgr} ON\n\n\/ems\n\u4e3a\u76ee\u524d\u7684\u64cd\u4f5c\u7cfb\u7edf\u542f\u52a8\u9879\u76ee EMS \u5f00\u542f:\nbcdedit \/ems ON\n\n\/emssettings \u8bbe\u5b9a\u7d27\u6025\u5904\u7406\u670d\u52a1\u53c2\u6570\u3002\n\u8bbe\u5b9a EMS \u53c2\u6570\u4f7f\u7528\u57fa\u672c\u8f93\u51fa\u5165\u7cfb\u7edf\u8bbe\u5b9a:\nbcdedit \/emssettings BIOS<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u662f\u4e00\u7bc7windows 7 bcdedit.exe(\u542f\u52a8\u7ba1\u7406\u5668)\u57fa\u672c\u8bed\u6cd5\u8bb2\u89e3\u7684\u6587\u7ae0\uff0c\u662f\u4f7f\u7528windows 7 bcdedit.exe(\u542f\u52a8\u7ba1\u7406\u5668)\u7684\u57fa\u7840\u6587\u7ae0\uff0c\u5982\u679c\u60f3\u8981\u5165\u95e8bcdedit.exe(\u542f\u52a8\u7ba1&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[186,185,187],"class_list":["post-280","post","type-post","status-publish","format-standard","hentry","category-other","tag-bcdedit","tag-windows-7","tag-187"],"_links":{"self":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=280"}],"version-history":[{"count":1,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/280\/revisions"}],"predecessor-version":[{"id":281,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/280\/revisions\/281"}],"wp:attachment":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=280"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}