How to turn on automatic logon in Windows (324737)
The information in this article applies to:
- Microsoft Windows Server 2003, Datacenter Edition
- Microsoft Windows Server 2003, Enterprise Edition
- Microsoft Windows Server 2003, Standard Edition
- Microsoft Windows Server 2003, Web Edition
- Microsoft Windows Server 2003, 64-Bit Datacenter Edition
- Microsoft Windows Server 2003, 64-Bit Enterprise Edition
- Microsoft Windows Small Business Server 2003, Premium Edition
- Microsoft Windows Small Business Server 2003, Standard Edition
This article was previously published under Q324737
For a Microsoft Windows 2000 version of this article, see 310584.
Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify 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. With this feature, other users can start your computer
and use the account that you establish to automatically log on. IMPORTANT: The autologon feature is convenient; however, this feature may
be 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's contents, including any network or networks it is connected to.
Additionally, when autologon is turned on, the password is stored in the
registry in plain text. The specific registry key that stores this value can be
remotely read by the Authenticated Users group. This setting is only
recommended for cases it which the computer is physically secured and steps
have been taken to make sure that untrusted users cannot remotely access the
registry. Use Registry Editor to turn on automatic logonWarning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk. To use Registry Editor (Regedt32.exe) to turn on
automatic logon, follow these steps:
- Click Start, and then click Run.
- In the Open box, type Regedt32.exe, and then press ENTER.
- Locate the following subkey in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon - 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, it must be added. To add the value, follow
these steps:
- On the Edit menu, click New, and then point to String Value.
- Type DefaultPassword, and then
press ENTER.
- Double-click DefaultPassword.
- In the Edit String dialog, type your password and then click OK.
NOTE: If no DefaultPassword string is specified, Windows automatically
changes the value of the AutoAdminLogon key from 1 (true) to 0 (false), disabling the AutoAdminLogon
feature.
- On the Edit menu, click New, and then point to String Value.
- Type AutoAdminLogon, and then press
ENTER.
- Double-click
AutoAdminLogon.
- In the Edit String dialog box, type 1 and then click OK.
- Quit Registry Editor.
- Click Start, click Shutdown, and then type a reason in the Comment text box.
- Click OK to turn off your computer.
- Restart your computer. You can now log on
automatically.
Notes 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. Registry change will not work if the "Logon Banner" is defined on the server either by a Group Policy object (GPO) or by a local policy. When policy is changed to not impact server, the feature works as expected.
Modification Type: | Minor | Last Reviewed: | 8/2/2006 |
---|
Keywords: | kbMgmtServices kbHOWTOmaster KB324737 kbAudITPro |
---|
|