Help and Support
 

powered byLive Search

How to enable automatic logon in Windows

Article ID:310584
Last Review:May 20, 2008
Revision:4.0
This article was previously published under Q310584
On This Page

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 log on.

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 plain text. The specific registry key that stores this value is remotely readable by the Authenticated Users group. This setting is recommended only for cases in which the computer is physically secured and in which steps have been taken to make sure that untrusted users cannot remotely access the registry.

Back to the top

Use Registry Editor (Regedt32.exe) to enable automatic logon

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 (http://support.microsoft.com/kb/322756/) How to back up and restore the registry in Windows


To enable automatic logon, follow these steps:
1.Start Regedt32.exe, and then locate the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
2.Using your account name and password, double-click the DefaultUserName entry, type your user name, and then click OK.
3.Double-click the DefaultDomainName entry, type the domain name, and then click OK.
4.Double-click the DefaultPassword entry, type your password, and then click OK.

Note If the DefaultPassword value does not exist, follow these steps:
a. Click Add Value on the Edit menu.
b. In the Value Name box, type DefaultPassword, and then click REG_SZ for the Data Type
c. Type your password in the String box, and then save your changes.
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.
5.Click Add Value on the Edit menu, enter AutoAdminLogon in the Value Name box, and then click REG_SZ for the Data Type.
6.Type 1 in the String box, and then save your changes.
7.Quit Regedt32.
8.Click Start, click Shutdown, and then click OK to turn off your computer.
9.Restart your computer and Windows. You are now able to log on automatically.
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


APPLIES TO
Microsoft Windows 2000 Server
Microsoft Windows 2000 Advanced Server
Microsoft Windows 2000 Professional Edition
Microsoft Windows 2000 Datacenter Server

Back to the top

Keywords: 
kbhowto kbhowtomaster KB310584

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.