After system startup, there is sometimes a need to have Windows Server login automatically as a particular user. The following changes to the registry accomplishes this.

  • Using RegEdit, open the following key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  • Set the account name in the DefaultUserName entry. If DefaultUserName does not exist, create a new entry as a string value (REG_SZ).
  • Set the password in the DefaultPassword entry. If DefaultPassword does not exist, create a new entry as a string value (REG_SZ).
  • Set the AutoAdminLogon entry to 1. If AutoAdminLogon does not exist, create a new entry as a string value (REG_SZ).

Click on the picture for larger image.

The next time the computer restarts it will automatically login as the specified user.