Windows SAC(特殊管理控制台) 串口登录

适用于 Windows 的 Azure 串行控制台 - Virtual Machines | Microsoft Learn

windows里运行如下命令然后重启

  • bcdedit /emssettings EMSPORT:1 EMSBAUDRATE:115200
  • bcdedit /set {bootmgr} displaybootmenu yes
  • bcdedit /set {bootmgr} timeout 10
  • bcdedit /set {bootmgr} bootems yes
  • bcdedit /ems {current} on

 重启进windows后串口出现SAC> 

Computer is booting, SAC started and initialized.                                                                        

Use the "ch -?" command for information about using channels.                  

Use the "?" command for general help.                                                                                                                           

EVENT: The CMD command is now available.                                       

SAC>

SAC>cmd

The Command Prompt session was successfully launched.

SAC>

EVENT:   A new channel has been created.  Use "ch -?" for channel help.

Channel: Cmd0001             

SAC>ch -sn Cmd0001  或 (ch -si 1 推荐用这个,Cmd0001会变,但是1几乎不变)

<?xml version="1.0"?>

<channel-switch>

<name>Cmd0001</name>

<description>Command Prompt</description>

<type>VT-UTF8</type>

<guid>xxx-xxx-xxx-xxx-xxx</guid>

<application-type>xxx-xxx-xxx-xxx-xxx</application-type>

</channel-switch>

Name:                  Cmd0001

Description:           Command

Type:                  VT-UTF8

Channel GUID:          xxx-xxx-xxx-xxx-xxx

Application Type GUID: xxx-xxx-xxx-xxx-xxx

 

Press <esc><tab> for next channel.

Press <esc><tab>0 to return to the SAC channel.

Use any other key to view this channel.

 

Please enter login credentials.

Username: xxx

Domain  : xxx

Password: **********

 

Attempting to authenticate...

Microsoft Windows [Version 1x.0.xxx.xxxx]

(c) Microsoft Corporation. All rights reserved.

 

C:\Windows\system32>dir C:\

 Volume in drive C is Windows

 Volume Serial Number is xxx-xxx

 Directory of C:\

 

SAC 常用命令:

cmd  新建一个channel

ch   列出所有channel

ch -?  查看所有命令

ch -si <#>       Switch to a channel by its number.
ch -sn <name>    Switch to a channel by its name.

ch -ci <#>       Close a channel by its number.
ch -cn <name>    Close a channel by its name.

 

posted @ 2025-05-23 14:34  我的腹肌不见了  阅读(40)  评论(0)    收藏  举报