Microsoft KB Archive/253370

From BetaArchive Wiki

How to Enable Automatic Logon in Windows 2000

Q253370



The information in this article applies to:


  • Microsoft Windows 2000 Professional





SUMMARY

Windows allows you to automate the logon process by storing your password and other pertinent information in the Registry database.



MORE INFORMATION

This feature allows other users to start your computer and use the account you establish to automatically logon.

IMPORTANT: Although enabling autologon can make it more convenient to use Windows 2000, use of this feature is a security risk.

Setting a computer for autologon means that anyone who can physically obtain access to the computer can gain access to all of the computer contents, potentially including any network or networks it is connected to. A second risk is that enabling autologon causes the password to be stored in the registry, in plaintext. The specific registry key that stores this value is remotely readable by the Authenticated Users group.

As a result, this setting is only appropriate for cases in which the computer is physically secured, and steps have been taken to ensure that untrusted users cannot remotely access the registry.

Use the Registry Editor (Regedt32.exe) to add your logon information, as follows:

WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.


  1. Start REGEDT32.EXE and locate the following Registry subkey:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon

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

    NOTE: The DefaultPassword value may not exist. If it doesn't, from the Edit menu, choose Add Value. In the Value Name field, type: "DefaultPassword" (without the quotation marks). Select REG_SZ for the Data Type. In the String field, type your password. Save your changes.

    Also, if no DefaultPassword string is specified, Windows NT automatically changes the value of the AutoAdminLogon key from 1 (true) to 0 (false), thus disabling the AutoAdminLogon feature.
  3. From the Edit menu, choose Add Value. Enter AutoAdminLogon in the Value Name field. Select REG_SZ for the Data Type. Enter 1 in the String field. Save your changes.
  4. Exit REGEDT32.
  5. Click Start, click Shutdown, and then click OK. Turn off your computer.
  6. Restart your computer and Windows NT. You should be able to logon automatically.

NOTE: To bypass the AutoAdminLogon process, and to logon on as a different user, hold down the SHIFT key after a logoff or after a Windows NT restart.

Note that this only applies to the first logon. To enforce this setting for subsequent logoffs, the administrator needs to set:

Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon

Value: ForceAutoLogon
Type: REG_SZ

Data: 1

Additional query words: regedit auto login autologon automated

Keywords :
Issue type : kbinfo
Technology : kbwin2000Search kbwin2000ProSearch kbwin2000Pro


Last Reviewed: January 3, 2001
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.