Username
Username
specifies a local account or a domain user account on the domain specified by the Domain.
By default, the built-in administrator account is disabled in all default clean installations. You can enable the built-in Administrator account during unattended installations, by setting Username
to Administrator (only the English word will automatically enable the account). This enables the built-in administrator account, even if a password is not specified in AdministratorPassword.
If you are deploying a multilingual Windows image, you should specify account names and group names, by using the language-neutral names. The language-neutral account and group names are specified in English, for example, Administrators, Power Users, and Guest. This is required because the shell account settings are processed before a default user interface (UI) language is applied to the computer.
Values
Username |
Specifies the user account name used for autologon. Username is a string with a maximum length of 256 characters. |
This string type does not support empty elements. Do not create an empty value for this setting.
Note
If this string value is left blank, Setup fails.
Valid Passes
Parent Hierarchy
Microsoft-Windows-Shell-Setup | AutoLogon | Username
Applies To
For the list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-Shell-Setup.
XML Example
The following XML output shows how to set autologon.
<AutoLogon>
<Password>
<Value>MyPassword</Value>
<PlainText>true</PlainText>
</Password>
<Domain>FabrikamDomain</Domain>
<Enabled>true</Enabled>
<LogonCount>2</LogonCount>
<Username>MyUserName</Username>
</AutoLogon>