Applies To: Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista
AutoLogon specifies the account to use to log on to a computer automatically.
AutoLogon credentials are deleted from the unattended installation answer file after Windows® Setup is complete.
AutoLogon is disabled on computers that are delivered to customers.
For more information about the built-in administrator account, see the How to Enable and Disable the Built-in Administrator Account topic in the Windows® Assessment and Deployment Kit (Windows ADK) Technical Reference.
These settings are valid for upgrades.
Specifies the domain to which the computer is logging on.
Specifies whether the automatic logon process is enabled.
Specifies the number of times that the account has been used.
Specifies the password for the account that is used for automatic logon.
Specifies the user account name that is used for automatic logon.
Valid Configuration Passes
Microsoft-Windows-Shell-Setup | AutoLogon
For a list of the Windows editions and architectures that this component supports, see Microsoft-Windows-Shell-Setup.
The following XML output shows how to set automatic logon.
<AutoLogon> <Password> <Value>MyPassword</Value> </Password> <Domain>FabrikamDomain</Domain> <Enabled>true</Enabled> <LogonCount>2</LogonCount> <Username>MyUserName</Username> </AutoLogon>