Microsoft KB Archive/315231

= How to turn on automatic logon in Windows XP =

Article ID: 315231

Article Last Modified on 12/1/2007

-

APPLIES TO


 * Microsoft Windows XP Home Edition
 * Microsoft Windows XP Professional
 * Microsoft Windows XP Professional x64 Edition

-



This article was previously published under Q315231



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



INTRODUCTION
This article describes how to configure Microsoft Windows XP to automate the logon process by storing your password and other pertinent information in the registry database. This feature permits other users to start your computer and to use the account that you establish to automatically log on.

Important If you turn on autologon, using Windows XP becomes more convenient. However, using this feature can pose a security risk.



MORE INFORMATION
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.

If you set a computer for automatic logon, anyone who can physically gain access to the computer can also gain access to everything that is on the computer, including any network or networks that the computer is connected to. Additionally, if you turn on automatic logon, the password is stored in the registry in plain text. The specific registry key that stores this value is remotely readable by the Authenticated Users group. Therefore, only use this setting if the computer is physically secured and if you make sure that users who you do not trust cannot remotely see the registry.

You can use Registry Editor to add your log on information. To do this, follow these steps:  Click Start, click Run, type regedit, and then click OK. Locate the following registry key:

 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 under the value data box, and then click OK.

If there is no DefaultPassword value, create the value. To do this, follow these steps:  In Registry Editor, click Edit, click New, and then click String Value. Type DefaultPassword as the value name, and then press ENTER.</li> Double-click the newly created key, and then type your password in the Value Data box.</li></ol>

If no DefaultPassword string is specified, Windows XP automatically changes the value of the  registry key from 1 (true) to 0 (false) to turn off the AutoAdminLogon feature.</li> Double-click the AutoAdminLogon entry, type 1 in the Value Data box, and then click OK.

If there is no AutoAdminLogon entry, create the entry. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> In Registry Editor, click Edit, click New, and then click String Value.</li> Type AutoAdminLogon as the value name, and then press ENTER.</li> Double-click the newly created key, and then type 1 in the Value Data box.</li></ol> </li> Quit Registry Editor.</li> Click Start, click Restart, and then click OK.</li></ol>

After your computer restarts and Windows XP starts, you can log on automatically.

If you want to bypass the automatic logon to log on as a different user, hold down the SHIFT key after you log off or after Windows XP restarts. Note that this procedure applies only to the first logon. To enforce this setting for future logoffs, the administrator must set the following registry key:

'''Value:ForceAutoLogon

Type: REG_SZ

Data: 1'''

You can also use turn on automatic logon without editing the registry in Microsoft Windows XP Home Edition and in Microsoft Windows XP Professional on a computer that is not joined to a domain. To do this, follow these steps: <ol> Click Start, and then click Run.</li> In the Open box, type control userpasswords2, and then click OK.

Note When users try to display help information in the User Accounts window in Windows XP Home Edition, the help information is not displayed. Additionally, users receive the following error message:

Cannot find the :\Windows\System32\users.hlp Help file. Check to see that the file exists on your hard disk drive. If it does not exist, you must reinstall it.

</li> Clear the &quot;Users must enter a user name and password to use this computer&quot; check box, and then click Apply.</li> In the Automatically Log On window, type the password in the Password box, and then retype the password in the Confirm Password box.</li> Click OK to close the Automatically Log On window, and then click OK to close the User Accounts window.</li></ol>

Additional query words: regedit auto login autologon automated

Keywords: kbacwsurvey kbregistry kbhowto kbenv kbinfo kbui KB315231

-

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

© Microsoft Corporation. All rights reserved.