Share via


LogonCount

LogonCount specifies the number of times the account has been used. This value decrements each time someone logs on. You must restart the computer to reset the value of LogonCount. LogonCount must be specified if AutoLogon is used.

Values

Logon_count

Specifies the number of times someone has logged on to the computer, by using autologon. Logon_count is an integer.

Valid Passes

auditSystem

oobeSystem

specialize

Parent Hierarchy

Microsoft-Windows-Shell-Setup | AutoLogon | LogonCount

Applies To

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

XML Example

The following XML output shows how to set autologon.

<AutoLogon>
   <Password>
      <Value>MyPassword</Value>
      <PlainText>true</PlainText>
   </Password>
   <Domain>FabrikamDomain</Domain>
   <Enabled>true</Enabled>
   <LogonCount>2</LogonCount>
   <Username>MyUserName</Username>
</AutoLogon>

See Also

Concepts

AutoLogon