Microsoft KB Archive/310584

= How To Enable Automatic Logon in Windows =

Article ID: 310584

Article Last Modified on 10/31/2006

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition
 * Microsoft Windows 2000 Datacenter Server

-



This article was previously published under Q310584



IN THIS TASK
SUMMARY
 * Use Registry Editor (Regedt32.exe) to Enable Automatic Logon

IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SUMMARY
This article describes how to configure Windows to automate the logon process by storing your password and other pertinent information in the registry database. This feature allows other users to start your computer and use the account you establish to automatically logon.

IMPORTANT: If you enable autologon, it is more convenient to use Windows; however this feature may pose a security risk. If you set a computer for autologon, anyone who can physically obtain access to the computer can gain access to all of the computer contents, including any network or networks it is connected to. In addition, when autologon is enabled, the password is stored in the registry in plaintext. The specific registry key that stores this value is remotely readable by the Authenticated Users group. This setting is only recommended for cases where the computer is physically secured, and steps have been taken to ensure that untrusted users cannot remotely access the registry.

back to the top

Use Registry Editor (Regedt32.exe) to Enable Automatic Logon
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To enable automatically logon, do the following:  Start Regedt32.exe, and then locate the following registry subkey:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

 Using your account name and password, double-click the DefaultUserName entry, type your user name, and then click OK. Double-click the DefaultPassword entry, type your password, and then click OK.

NOTE: If the DefaultPassword value does not exist, follow these steps:

 Click Add Value on the Edit menu. In the Value Name box, type DefaultPassword, and then click REG_SZ for the Data Type Type your password in the String box, and then save your changes.</ol>

Also, if no DefaultPassword string is specified, Windows automatically changes the value of the AutoAdminLogon key from 1 (true) to 0 (false), which disables the AutoAdminLogon feature.</li> Click Add Value on the Edit menu, enter AutoAdminLogon in the Value Name box, and then click REG_SZ for the Data Type.</li> Type 1 in the String box, and then save your changes.</li> Quit Regedt32.</li> Click Start, click Shutdown, and then click OK to turn off your computer.</li> Restart your computer and Windows. You are now able to log on automatically.</li></ol>

NOTE: To bypass the AutoAdminLogon process, and to log on as a different user, hold down the SHIFT key after you log off or after Windows restarts.

back to the top

Additional query words: regedit auto login autologon automated

Keywords: kbhowto kbhowtomaster KB310584

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.