BCDEdit 选项参考BCDEdit Options Reference

启动入口参数,或引导参数,是可选的系统特定的设置,表示配置选项。Boot entry parameters, or boot parameters, are optional, system-specific settings that represent configuration options. 可以向操作系统的启动项来添加启动参数。You can add boot parameters to a boot entry for an operating system.

本部分介绍支持的与开发、 测试和调试基于 x86 和基于 x64 的处理器的计算机上的驱动程序相关的 Windows 版本的启动选项。This section describes the boot options for supported versions of Windows that are related to developing, testing, and debugging drivers on computers with x86-based and x64-based processors. 可以将这些参数添加到 Windows 操作系统的启动项。You can add these parameters to the boot entries for Windows operating systems.

备注

设置 BCDEdit 选项之前,您可能需要禁用或暂停 BitLocker 和安全启动的计算机上。Before setting BCDEdit options you might need to disable or suspend BitLocker and Secure Boot on the computer.

本部分内容In this section

主题Topic 描述Description

BCDEdit /bootdebugBCDEdit /bootdebug

/Bootdebug启动选项启用或禁用的当前或指定 Windows 操作系统启动项目的调试启动。The /bootdebug boot option enables or disables boot debugging of the current or specified Windows operating system boot entry.

[!Note]
设置 BCDEdit 选项之前,您可能需要禁用或暂停 BitLocker 和安全启动的计算机上。Before setting BCDEdit options you might need to disable or suspend BitLocker and Secure Boot on the computer.

BCDEdit /dbgsettingsBCDEdit /dbgsettings

/Dbgsettings选项设置,或显示计算机的当前全局调试器设置。The /dbgsettings option sets or displays the current global debugger settings for the computer. 若要启用或禁用内核调试程序,请使用 BCDEdit /debug 选项。To enable or disable the kernel debugger, use the BCDEdit /debug option.

[!Note]
设置 BCDEdit 选项之前,您可能需要禁用或暂停 BitLocker 和安全启动的计算机上。Before setting BCDEdit options you might need to disable or suspend BitLocker and Secure Boot on the computer.

BCDEdit /debugBCDEdit /debug

/Debug启动选项启用或禁用内核调试与指定的启动项目或当前引导条目相关联的 Windows 操作系统。The /debug boot option enables or disables kernel debugging of the Windows operating system associated with the specified boot entry or the current boot entry.

[!Note]
设置 BCDEdit 选项之前,您可能需要禁用或暂停 BitLocker 和安全启动的计算机上。Before setting BCDEdit options you might need to disable or suspend BitLocker and Secure Boot on the computer.

BCDEdit /deletevalueBCDEdit /deletevalue

BCDEdit /deletevalue命令删除,或从 Windows 引导配置数据存储 (BCD) 中删除的启动项选项 (和其值)。The BCDEdit /deletevalue command deletes or removes a boot entry option (and its value) from the Windows boot configuration data store (BCD). 使用BCDEdit /deletevalue命令删除已添加使用的选项 BCDEdit /set 命令。Use the BCDEdit /deletevalue command to remove options that were added using BCDEdit /set command. 可能需要在测试和调试您的驱动程序的 Windows 7、 Windows 8、 Windows 8.1,Windows 10 和更高版本的 Windows 时删除启动条目选项。You might need to remove boot entry options when you are testing and debugging your driver for Windows 7, Windows 8, Windows 8.1, Windows 10 and later versions of Windows.

BCDEdit /emsBCDEdit /ems

/Ems选项启用或禁用紧急管理服务 (EMS) 为指定的操作系统启动项目。The /ems option enables or disables Emergency Management Services (EMS) for the specified operating system boot entry.

BCDEdit /emssettingsBCDEdit /emssettings

/Emssettings选项设置为计算机的全局紧急管理服务 (EMS) 设置。The /emssettings option sets the global Emergency Management Services (EMS) settings for the computer. 若要启用或禁用 EMS,请使用/ems选项。To enable or disable EMS, use the /ems option. /Emssettings选项不会启用或禁用的任何启动项的 EMS。The /emssettings option does not enable or disable EMS for any boot entry.

BCDEdit /setBCDEdit /set

BCDEdit /set命令设置 Windows 引导配置数据存储 (BCD) Windows 7、 Windows Server 2008、 Windows 8、 Windows 8.1,Windows 10、 Windows Server 2012 和 Windows Server 2012 R2 中的启动项选项值。The BCDEdit /set command sets a boot entry option value in the Windows boot configuration data store (BCD) for Windows 7, Windows Server 2008, Windows 8, Windows 8.1,Windows 10, Windows Server 2012, and Windows Server 2012 R2. 使用BCDEdit /set命令来配置特定的启动项元素,如内核调试程序设置、 内存选项或启用测试签名的内核模式代码或负载备用硬件抽象层 (HAL) 的选项和内核文件。Use the BCDEdit /set command to configure specific boot entry elements, such as kernel debugger settings, memory options, or options that enable test-signed kernel-mode code or load alternate hardware abstraction layer (HAL) and kernel files. 若要删除的启动项选项,请使用 BCDEdit /deletevalue 命令。To remove a boot entry option, use the BCDEdit /deletevalue command.

Boot.ini 选项映射到 BCDEdit 选项和元素Mapping Boot.ini Options to BCDEdit Options and Elements

下表提供从使用中 (在 Boot.ini),Windows Vista 之前的操作系统的启动选项到 BCDEdit 选项和在 Windows 中使用的 BCD 元素之间映射。The following table provides a mapping from the boot options used in operating systems prior to Windows Vista (in Boot.ini), to the BCDEdit options and the BCD elements used in Windows. 璝惠 BCD 启动元素,请参见BCD 引用For information about the BCD boot elements see BCD Reference.

Boot.iniBoot.ini BCDEdit 选项BCDEdit option BCD 元素类型BCD element type

/3GB/3GB

increaseuservaincreaseuserva

BcdOSLoaderInteger_IncreaseUserVaBcdOSLoaderInteger_IncreaseUserVa

/BASEVIDEO/BASEVIDEO

vgavga

BcdOSLoaderBoolean_UseVgaDriverBcdOSLoaderBoolean_UseVgaDriver

/ BOOTLOG/BOOTLOG

bootlogbootlog

BcdOSLoaderBoolean_BootLogInitializationBcdOSLoaderBoolean_BootLogInitialization

/BREAK/BREAK

halbreakpointhalbreakpoint

BcdOSLoaderBoolean_DebuggerHalBreakpointBcdOSLoaderBoolean_DebuggerHalBreakpoint

/CRASHDEBUG/CRASHDEBUG

/dbgsettings /start/dbgsettings /start

/ 调试 BOOTDEBUG/DEBUG, BOOTDEBUG

/debug/debug

/bootdebug/bootdebug

BcdLibraryBoolean_DebuggerEnabledBcdLibraryBoolean_DebuggerEnabled

/DEBUG/DEBUG

/debug/debug

BcdOSLoaderBoolean_KernelDebuggerEnabledBcdOSLoaderBoolean_KernelDebuggerEnabled

/ 调试,/DEBUGPORT =/DEBUG, /DEBUGPORT=

/dbgsettings/dbgsettings

BcdLibraryInteger_DebuggerTypeBcdLibraryInteger_DebuggerType

/DEBUGPORT=/DEBUGPORT=

/dbgsettings/dbgsettings

BcdLibraryInteger_SerialDebuggerPortBcdLibraryInteger_SerialDebuggerPort

BcdLibraryInteger_SerialDebuggerBaudRateBcdLibraryInteger_SerialDebuggerBaudRate

BcdLibraryInteger_1394DebuggerChannelBcdLibraryInteger_1394DebuggerChannel

BcdLibraryString_UsbDebuggerTargetNameBcdLibraryString_UsbDebuggerTargetName

BcdLibraryInteger_DebuggerNetHostIPBcdLibraryInteger_DebuggerNetHostIP

BcdLibraryInteger_DebuggerNetPortBcdLibraryInteger_DebuggerNetPort

BcdLibraryBoolean_DebuggerNetDhcpBcdLibraryBoolean_DebuggerNetDhcp

BcdLibraryString_DebuggerNetKeyBcdLibraryString_DebuggerNetKey

/EXECUTE/EXECUTE

nxnx

BcdOSLoaderInteger_NxPolicyBcdOSLoaderInteger_NxPolicy

/FASTDETECT/FASTDETECT

/HAL=/HAL=

halhal

BcdOSLoaderString_HalPathBcdOSLoaderString_HalPath

/KERNEL=/KERNEL=

kernelkernel

BcdOSLoaderString_KernelPathBcdOSLoaderString_KernelPath

/MAXMEM=/MAXMEM=

truncatememorytruncatememory

BcdLibraryInteger_TruncatePhysicalMemoryBcdLibraryInteger_TruncatePhysicalMemory

/NODEBUG/NODEBUG

/debug/debug

/NOEXECUTE/NOEXECUTE

nx {nx {

BcdOSLoaderInteger_NxPolicyBcdOSLoaderInteger_NxPolicy

/NOGUIBOOT/NOGUIBOOT

quietbootquietboot

BcdOSLoaderBoolean_DisableBootDisplayBcdOSLoaderBoolean_DisableBootDisplay

/NOLOWMEM/NOLOWMEM

nolowmemnolowmem

BcdOSLoaderBoolean_NoLowMemoryBcdOSLoaderBoolean_NoLowMemory

/NOPAE/NOPAE

paepae

BcdOSLoaderInteger_PAEPolicyBcdOSLoaderInteger_PAEPolicy

/ONECPU/ONECPU

onecpuonecpu

BcdOSLoaderBoolean_UseBootProcessorOnlyBcdOSLoaderBoolean_UseBootProcessorOnly

/PAE/PAE

paepae

BcdOSLoaderInteger_PAEPolicyBcdOSLoaderInteger_PAEPolicy

/ PCILOCK/PCILOCK

usefirmwarepcisettingsusefirmwarepcisettings

BcdOSLoaderInteger_UseFirmwarePciSettingsBcdOSLoaderInteger_UseFirmwarePciSettings

/ 重定向/REDIRECT

/ems/ems

/emssettings [ BIOS ] |/emssettings [ BIOS ] |

[ EMSPORT:{端口} |[EMSBAUDRATE: {baudrate}]][ EMSPORT:{port} | [EMSBAUDRATE: {baudrate}] ]

BcdOSLoaderBoolean_EmsEnabledBcdOSLoaderBoolean_EmsEnabled

/SOS/SOS

sossos

另请参阅See also

添加启动项Adding Boot Entries