Compartir a través de


AutoLogon

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.

Important

Make sure 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.

Note

These settings are valid for upgrades.

Child Elements

Domain

Specifies the domain to which the computer is logging on.

Enabled

Specifies whether the automatic logon process is enabled.

LogonCount

Specifies the number of times that the account has been used. LogonCount must be specified if AutoLogon is used.

Password

Specifies the password for the account that is used for automatic logon.

Username

Specifies the user account name that is used for automatic logon.

Valid Configuration Passes

auditSystem

oobeSystem

specialize

Parent Hierarchy

Microsoft-Windows-Shell-Setup | AutoLogon

Applies To

For a list of the Windows editions and architectures that this component supports, see Microsoft-Windows-Shell-Setup.

XML Example

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>

See Also

Concepts

Microsoft-Windows-Shell-Setup