Bcdboot - BCD 啟動檔案建立和修復工具。bcdedit是Windows作業系統的一個命令列工具,它用於檢視和修改啟動配置資料(BCD)。

suv789發表於2024-04-28

BCDBoot 命令列選項 | Microsoft Learn

BCDEdit 命令列選項 | Microsoft Learn

bcdboot

Bcdboot - Bcd boot file creation and repair tool.

The bcdboot.exe command-line tool is used to copy critical boot files to the
system partition and to create a new system BCD store.

bcdboot <source> [/l <locale>] [/s <volume-letter> [/f <firmware>]] [/v]
[/vbcd] [/m [{OS Loader ID}]] [/addlast] [/p] [/c]

source Specifies the location of the windows system root.

/l Specifies an optional locale parameter to use when
initializing the BCD store. The default is US English.

/s Specifies an optional volume letter parameter to designate
the target system partition where boot environment files are
copied. The default is the system partition identified by
the firmware.

/v Enables verbose mode.

/vbcd Enables BCD logging.

/m If an OS loader GUID is provided, this option merges the
given loader object with the system template to produce a
bootable entry. Otherwise, only global objects are merged.

/d Specifies that the existing default windows boot entry
should be preserved.

/f Used with the /s command, specifies the firmware type of the
target system partition. Options for <firmware> are 'UEFI',
'BIOS', or 'ALL'.

/t Used with the /s and /f commands, specifies a target directory
under the system partition where the boot environment files
are to be copied. By default, the boot environment files are
copied to the root of the target system partition.

/addlast Specifies that the windows boot manager firmware entry
should be added last. The default behavior is to add it
first.

/bcdclean Clean the BCD Store. By default, simply removes any duplicate
entries in the BCD. Can be followed by 'full'. In this case,
each entry is scanned. If the corresponding device for that entry
does not exist, the entry is deleted.

/p Specifies that the windows boot manager firmware entry
position should be preserved. If entry does not exist,
new entry will be added in the first position.

/c Specifies that any existing objects described by the template
should not be migrated.

/imageroot Specifies an image root under from the boot files originate. The bcd store of this
image needs to be constructed with paths relative to the root of the image.

Examples: bcdboot c:\windows /l en-us
bcdboot c:\windows /s h:
bcdboot c:\windows /s h: /f UEFI
bcdboot c:\windows /s h: /f UEFI /t Configuration\Boot
bcdboot c:\windows /m {d58d10c6-df53-11dc-878f-00064f4f4e08}
bcdboot c:\windows /d /addlast
bcdboot c:\windows /p
bcdboot C:\Images\ImageRoot\Files\Windows /f UEFI /imageroot C:\Images\ImageRoot\Files

Bcdboot - BCD 啟動檔案建立和修復工具。

Bcdboot.exe 命令列工具用於將關鍵啟動檔案複製到系統分割槽,並建立新的系統 BCD 儲存。

bcdboot <source> [/l <locale>] [/s <volume-letter> [/f <firmware>]] [/v]
[/vbcd] [/m [{OS Loader ID}]] [/addlast] [/p] [/c]

source 指定 Windows 系統根目錄的位置。

/l 指定初始化 BCD 儲存時要使用的可選區域設定引數。預設為美式英語。

/s 指定可選的卷標引數,用於指定要將啟動環境檔案複製到的目標系統分割槽。預設為由韌體標識的系統分割槽。

/v 啟用詳細模式。

/vbcd 啟用 BCD 日誌記錄。

/m 如果提供了 OS 載入器 GUID,則此選項將將給定的載入器物件與系統模板合併以生成可引導的條目。否則,只合並全域性物件。

/d 指定應保留現有預設的 Windows 引導條目。

/f 與 /s 命令一起使用時,指定目標系統分割槽的韌體型別。 <firmware> 的選項為 'UEFI'、'BIOS' 或 'ALL'。

/t 與 /s 和 /f 命令一起使用時,指定要將啟動環境檔案複製到的系統分割槽下的目標目錄。預設情況下,啟動環境檔案將複製到目標系統分割槽的根目錄。

/addlast 指定應將 Windows 引導管理器韌體條目新增到最後。預設行為是將其新增到第一個位置。

/bcdclean 清理 BCD 儲存。預設情況下,只刪除 BCD 中的任何重複條目。可以跟隨 'full'。在這種情況下,將掃描每個條目。如果該條目的相應裝置不存在,則刪除該條目。

/p 指定應保留 Windows 引導管理器韌體條目位置。如果條目不存在,則將在第一個位置新增新條目。

/c 指定不遷移模板描述的任何現有物件。

/imageroot 指定啟動檔案源的影像根。此影像的 bcd 儲存需要構造為相對於影像根的路徑。

示例: bcdboot c:\windows /l en-us
bcdboot c:\windows /s h:
bcdboot c:\windows /s h: /f UEFI
bcdboot c:\windows /s h: /f UEFI /t Configuration\Boot
bcdboot c:\windows /m {d58d10c6-df53-11dc-878f-00064f4f4e08}
bcdboot c:\windows /d /addlast
bcdboot c:\windows /p
bcdboot C:\Images\ImageRoot\Files\Windows /f UEFI /imageroot C:\Images\ImageRoot\Files

bcdedit

Windows Boot Manager
--------------------
identifier {bootmgr}
device partition=\Device\HarddiskVolume1
path \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI
description Windows Boot Manager
locale zh-CN
inherit {globalsettings}
bootshutdowndisabled Yes
default {current}
resumeobject {01cd325c-02a1-11ef-a54b-9a08560ca6a8}
displayorder {current}
toolsdisplayorder {memdiag}
timeout 30

Windows Boot Loader
-------------------
identifier {current}
device partition=C:
path \Windows\system32\winload.efi
description Windows Server
locale zh-CN
inherit {bootloadersettings}
recoverysequence {01cd325e-02a1-11ef-a54b-9a08560ca6a8}
displaymessageoverride Recovery
recoveryenabled Yes
isolatedcontext Yes
allowedinmemorysettings 0x15000075
osdevice partition=C:
systemroot \Windows
resumeobject {01cd325c-02a1-11ef-a54b-9a08560ca6a8}
nx OptOut

bcdedit是Windows作業系統的一個命令列工具,它用於檢視和修改啟動配置資料(BCD)。這些是您提供的配置資料

Windows 啟動管理器
識別符號 {bootmgr}
裝置 分割槽=\Device\HarddiskVolume1
路徑 \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI
描述 Windows 啟動管理器
區域設定 簡體中文
繼承 {globalsettings}
關閉啟動時的關機禁用 是
預設 {current}
恢復物件 {01cd325c-02a1-11ef-a54b-9a08560ca6a8}
顯示順序 {current}
工具顯示順序 {memdiag}
超時 30

Windows 啟動載入器
識別符號 {current}
裝置 分割槽=C:
路徑 \Windows\system32\winload.efi
描述 Windows 伺服器
區域設定 簡體中文
繼承 {bootloadersettings}
恢復序列 {01cd325e-02a1-11ef-a54b-9a08560ca6a8}
覆蓋顯示訊息 恢復
恢復啟用 是
隔離上下文 是
允許記憶體設定 0x15000075
作業系統裝置 分割槽=C:
系統根目錄 \Windows
恢復物件 {01cd325c-02a1-11ef-a54b-9a08560ca6a8}
nx 選擇退出(OptOut)

相關文章