DefaultUserName

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

Data type Range Default value

REG_SZ

User-name

Administrator

Description

Stores the last user name entered in the Log On to Windows dialog box.

The value of this entry appears in the Log On to Windows dialog box the next time the dialog box is displayed. It is also used in automated logons and unattended setup.

Note

  • This entry is required if you have configured Windows Server 2003 to log on automatically by setting the value of the entry AutoAdminLogon to 1.

Tip

  • If you delete the value of this entry, then the system restores it the next time a user logs on to Windows Server 2003. To specify that the user-name field in the Log On to Windows dialog box be blank, set the value of the DontDisplayLastUserName entry to 1.

See Also

Concepts

DefaultDomainName
DontDisplayLastUserName