How To Enable Automatic Logon in Windows (310584)
The information in this article applies to:
- Microsoft Windows 2000 Server
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Professional
- Microsoft Windows 2000 Datacenter Server
This article was previously published under Q310584 IN THIS TASKIMPORTANT: 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 LogonWARNING: 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.
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.
- Click Add Value on the Edit menu, enter AutoAdminLogon in the
Value Name box, and then click REG_SZ for the Data Type.
- Type 1 in the
String box, and then save your changes.
- Quit Regedt32.
- Click Start, click Shutdown, and then click OK to turn off your computer.
- 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
Modification Type: | Minor | Last Reviewed: | 1/27/2006 |
---|
Keywords: | kbhowto kbHOWTOmaster KB310584 kbAudITPro |
---|
|