How to Enable Automatic Logon in Windows NT 3.x and 4.0 (97597)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows NT Server 3.1
  • Microsoft Windows NT Server 3.51
  • Microsoft Windows NT Server 4.0
  • Microsoft Windows NT Workstation 3.1
  • Microsoft Windows NT Workstation 3.51
  • Microsoft Windows NT Workstation 4.0

This article was previously published under Q97597
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

SUMMARY

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

NOTE: This feature allows other users to start your computer and use the account you establish to automatically logon. Also, timing conflicts can occur. For example: If you have several network transports loaded, enabling automatic logon may make Windows NT attempt to connect to network resources before the network transports are completely loaded.

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.

Use the Registry Editor (Regedt32.exe) to add your logon information, as follows:
  1. Start REGEDT32.EXE and locate the following Registry subkey:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

  2. Establish your domain name, account name, and password, using the values you would normally type when logging on. You should assign the following values:

    DefaultDomainName
    DefaultUserName
    DefaultPassword

    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. Select REG_SZ for the Data Type. In the String field, type your password, and then 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, and then save your changes.
  4. Exit REGEDT32.
  5. Exit Windows NT, and then turn off your computer.
  6. Restart your computer and Windows NT. You should be 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 you restart Windows NT.

It is also important to note that if the DONTDISPLAYLASTUSERNAME value is set to 1, Autoadminlogon does not function.

Modification Type:MajorLast Reviewed:10/9/2002
Keywords:kbinfo kbusage KB97597