How to enable automatic logon in Windows NT or 2000

Updated: 04/26/2017 by Computer Hope

automatically loginTo configure Windows NT or 2000 to automatically login will require the Registry to be edited and the following instructions to be done. Before editing the Registry, ensure that you are aware of the possible issues that occur by reviewing our Registry page.

  1. Run Regedt32.exe
  2. Open the following key:

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

Within the above key, change the values normally entered to the following values:


If DefaultPassword is not present, create a new value by clicking Edit and 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 save changes.

If no DefaultPassword string is specified, Windows NT automatically changes the value of the AutoAdminLogon key from 1 to 0, thus disabling AutoAdminLogon feature.

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 save your changes.

To bypass the automatic logon in the future, press and hold the Shift key as the computer is booting.

Finally, if DONTDISPLAYLASTUSERNAME value is set to 1, Autoadminlogon does not function.

Tip: Unlike Windows 95, 98, and ME, users cannot hit a Cancel button or Escape key to bypass the Windows NT, 2000, XP or later logons.

Additional information

  • See our logon definition for further information and related links on this term.