Table of contents
Collapse the table of content
Expand the table of content


Last Updated: 12/12/2016

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.

After the specified number of automated logon actions has occurred, you must manually log onto the computer.

If the built-in administrator account is used, the account is still active. 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.



Specifies the number of times you can log on to the computer by using AutoLogon. Logon_count is an integer.

Valid Configuration Passes




Parent Hierarchy

Microsoft-Windows-Shell-Setup | AutoLogon | LogonCount

Applies To

For a list of the Windows editions and architectures that this component supports, see Microsoft-Windows-Shell-Setup. This setting is not configured in a Nano Server image.

XML Example

The following XML output shows how to set AutoLogon so that you can log onto the computer twice using the built-in administrator account.



Send comments about this topic to Microsoft

© 2017 Microsoft