https://blog.csdn.net/qq_21000273/article/details/52027708 以下命令必须 是cmd管理员启动 用pwshell会报错

Microsoft Windows [版本 10.0.16299.64]
(c) 2017 Microsoft Corporation。保留所有权利。

C:\Windows\system32>bcdedit

Windows 启动管理器
--------------------
标识符                  {bootmgr}
device                  partition=\Device\HarddiskVolume1
path                    \EFI\Microsoft\Boot\bootmgfw.efi
description             Windows Boot Manager
locale                  zh-CN
inherit                 {globalsettings}
default                 {current}
resumeobject            {c07e894a-0435-11e9-b87d-a653ce34af37}
displayorder            {current}
toolsdisplayorder       {memdiag}
timeout                 30

Windows 启动加载器
-------------------
标识符                  {current}
device                  partition=C:
path                    \Windows\system32\winload.efi
description             Windows 10
locale                  zh-CN
inherit                 {bootloadersettings}
recoverysequence        {c07e894c-0435-11e9-b87d-a653ce34af37}
displaymessageoverride  Recovery
recoveryenabled         Yes
isolatedcontext         Yes
allowedinmemorysettings 0x15000075
osdevice                partition=C:
systemroot              \Windows
resumeobject            {c07e894a-0435-11e9-b87d-a653ce34af37}
nx                      OptIn
bootmenupolicy          Standard

C:\Windows\system32>bcdedit /dbgsettings serial baudrate:115200 debugport:1
操作成功完成。

C:\Windows\system32>bcdedit /copy {current} /d DebugEntry
已将该项成功复制到 {c07e894e-0435-11e9-b87d-a653ce34af37}。

C:\Windows\system32>bcdedit /displayorder {current} {c07e894e-0435-11e9-b87d-a653ce34af37}
操作成功完成。

C:\Windows\system32>
C:\Windows\system32>
C:\Windows\system32>bcdedit /debug {c07e894e-0435-11e9-b87d-a653ce34af37} ON
操作成功完成。

C:\Windows\system32>

成功连接上

........................ windbg 1394 运行输入msconfig windbg file>kernel debuging