Export (0) Print
Expand All

AutoLogon

Updated: August 1, 2012

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.

ImportantImportant
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.

noteNote
These settings are valid for upgrades.

 

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.

auditSystem

oobeSystem

specialize

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>

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft