Share via


AutoLogon

Note   Starting with Windows 10, version 1703, this setting can no longer be used in provisioning packages. For more information on changes to the Windows Provisioning Framework, see Windows Provisioning Framework. This setting may have a Configuration Service Provider (CSP) equivalent that can be used instead. To determine if a CSP for this setting exists, see the description below.

 

AutoLogon specifies the account to use to log on to a computer automatically. AutoLogon credentials are deleted from the answer file after Windows Setup is complete.

Important  

  • In Windows 10, if you configure AutoLogon, the OS will skip the user account creation phase during OOBE. This is a change from previous versions of Windows.

    In addition, the account creation phase during OOBE is skipped in all versions of Windows when at least one user account is created through the UserAccounts section of the same unattend file. This change only applies when no user account is created by unattend such as when setting AutoLogon for a built-in or existing account like Administrator or Guest. In these scenarios, Microsoft recommends using unattend to create at least one user account in the Administrators group to ensure that the device can be managed after the autologon is complete.

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

 

In this section

Topic Description

Domain

Domain specifies the domain to which the computer is logging on.

Enabled

Enabled specifies whether the automatic logon process is enabled.

LogonCount

LogonCount specifies the number of times that you can log on to the computer by using AutoLogon. This value decrements each time you log on to the computer. You must restart the computer to reset the value of LogonCount. LogonCount must be specified if AutoLogon is used.

Password

Password specifies the password for the Username account used for autologon to the Domain, and whether the password is made more security-enhanced in the customization answer file.

Username

UserName specifies a local account or a domain user account on the domain specified by the Domain.

 

Valid configuration passes

specialize

auditSystem

oobeSystem

Applies to

Windows edition x86-based devices x64-based devices
Windows 10 for desktop editions (Home, Pro, Enterprise, and Education) x86 amd64

 

 

 

Send comments about this topic to Microsoft