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

Article ID: 2840544 - View products that this article applies to.
Expand all | Collapse all


Consider the following scenario:
  • You connect a USB keyboard to a computer that is running Windows 7 or Windows 8.
  • Automatic logon is enabled.
    Note: To enable automatic logon, set the AutoAdminLogon registry value to 1 by using Registry Editor. For additional information, see the More Information section at the end of this KB article.
  • You log off 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 does not appear.


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.

Note: If you are running Windows 7, you must also have the following hotfix installed:

2526967 The Shift key on a USB keyboard does not override the automatic logon setting on a computer that is running Windows 7 or Windows Server 2008 R2

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

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.


Article ID: 2840544 - Last Review: April 16, 2013 - Revision: 2.0
Applies to
  • Windows Embedded Standard 7
  • Windows 8
  • Windows 8 Pro
  • Windows 8 Enterprise

Give Feedback


Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com