
bcdedit删除引导
bcdedit is a command line tool used to manage Boot Configuration Data (BCD). This tool can be used to store boot configuration, boot applications and related settings. We need Administrator privileges in order to change and modify boot configuration with the bcdedit.
bcdedit是用于管理引导配置数据(BCD)的命令行工具。 该工具可用于存储启动配置,启动应用程序和相关设置。 我们需要管理员特权才能使用bcdedit更改和修改启动配置。
帮帮我 (Help)
Before starting using the bcdedit command we need to list and learn the features and options provided by the bcdedit command. We can use /?
to list all available options and features.
在开始使用bcdedit命令之前,我们需要列出和学习bcdedit命令提供的功能和选项。 我们可以使用/?
列出所有可用的选项和功能。
> bcdedit /?

商店(Store)
Boot configuration is stored in stores. Stores are containers that hold configuration and values.
引导配置存储在存储中。 商店是保存配置和值的容器。
建立店铺 (Create a Store)
We can create en new and empty store with the /createstore
. The newly created store is not a system store and named as a user store. In this example, we will create a new store named poftut
.
我们可以使用/createstore
创建一个新的空商店。 新创建的存储不是系统存储,而是被命名为用户存储。 在此示例中,我们将创建一个名为poftut
的新商店。
> bcdedit /createstore poftut

出口商店(Export Store)
We can export a given store with the /export
option. We will also the export name after the /export
option like below. This will be named as system
.
我们可以使用/export
选项导出给定的商店。 我们还将在/export
选项之后添加导出名称,如下所示。 这将被命名为system
。
> bcdedit /export system

进口商店(Import Store)
We can also import a given store and related boot configuration. We will use /import
and provide the store name. In this example, we will import the store file named system
.
我们还可以导入给定的商店和相关的启动配置。 我们将使用/import
并提供商店名称。 在此示例中,我们将导入名为system
的商店文件。
> bcdedit /import system
列出当前商店值 (List Current Store Values)
We can list current store values with the /store
option. This will enum following information.
我们可以使用/store
选项列出当前商店的值。 这将枚举以下信息。
- `identifier` `标识符`
- `device` 设备
- `timeout``超时`
- `path` 路径
- … …
> bcdedit /store system

列表条目类型(List Entry Types)
Data types are identified using either a name or custom type. We can list them with the /? TYPES
option like below.
数据类型使用名称或自定义类型来标识。 我们可以用/? TYPES
列出它们/? TYPES
/? TYPES
选项如下。
> bcdedit /? TYPES

列表条目格式(List Entry Formats)
Formats describe formats of the data that are required for data types used with the /set
command. We can list supported format with the /? FORMATS
option.
格式描述与/set
命令一起使用的数据类型所需的数据格式。 我们可以使用/? FORMATS
列出支持的格式/? FORMATS
/? FORMATS
选项。
> bcdedit /? FORMATS

复制条目(Copy Entry)
We can copy an already existing entry with the /copy
option. We need tp specify the entry we want to copy and the value of the entry
我们可以使用/copy
选项复制一个已经存在的条目。 我们需要tp指定要复制的条目和该条目的值
> bcdedit /copy {052c3990-b2d4-11e8-a404-cb11a34d6922} /d "Copy of entry"

创建条目(Create Entry)
We can create a new entry in the boot configuration of the data store. We will create a {ntldr}
entry which data is "Old Windows OS Loader"
.
我们可以在数据存储区的启动配置中创建一个新条目。 我们将创建一个{ntldr}
条目,其数据为"Old Windows OS Loader"
。
> bcdedit /create {ntldr} /d "Old Windows OS Loader"

删除条目 (Delete Entry)
We can delete an entry just by specifying the name of the entry. We will use /delete
option for this.
我们可以仅通过指定条目名称来删除条目。 我们将使用/delete
选项。
> bcdedit /delete {cbd971bf-b7b8-4885-951a-fa03044f5d71}
翻译自: https://www.poftut.com/bcdedit-command-tutorial-with-examples-to-edit-windows-boot-configuration/
bcdedit删除引导