大网数据广告活动
账户与安全

Holding Shift key while shutting down or logging off may not disable automatic logon

· 52CE 我爱测

Resolves an issue where you can't disable automatic logon by holding the Shift key while shutting down or logging off from a computer.

This article helps resolve an issue where you can't disable automatic logon by holding the Shift key while shutting down or logging off from a computer.

Applies to:   Windows 10 – all editions
Original KB number:   2840544

Symptoms

Consider the following scenario:

  • You connect a USB keyboard to a computer that is running Windows.
  • Automatic logon is enabled.

    [!Note] To enable automatic logon, set the AutoAdminLogon registry value to 1 by using Registry Editor. For more information, see the More information section at the end of this KB article.

  • You log off from the computer to log on with a different user account, holding down the Shift key on the USB keyboard after logging off to override the automatic logon setting.

In this scenario, the Secure Attention Sequence (logon) dialog box doesn't appear.

Resolution

To resolve this issue, be sure to hold down the Shift key before choosing to log off or restart the system. Alternatively, you can try pressing the Shift key multiple times.

More information

For more information about how to enable automatic logon in Windows, click the following article number to view the article in the Microsoft Knowledge Base:

310584 How to enable automatic logon in Windows

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Client · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。