Auto logon values are stored in the registry. Run the following PowerShell script to determine your current AutoLogon settings.
$path = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon'
$AutoAdminLogon = (Get-ItemProperty -Path $path).AutoAdminLogon
$DefaultUserName = (Get-ItemProperty -Path $path).DefaultUserName
$DefaultPassword = (Get-ItemProperty -Path $path).DefaultPassword
$AutoLogonCount = (Get-ItemProperty -Path $path).AutoLogonCount
Write-Host "Current AutoLogon Settings:" -ForegroundColor Yellow
Write-Host "AutoAdminLogon: $AutoAdminLogon"
Write-Host "DefaultUserName: $DefaultUserName"
Write-Host "DefaultPassword: $DefaultPassword"
Write-Host "AutoLogonCount: $AutoLogonCount"
Output from my Windows 10 1607 laptop:
Current AutoLogon Settings:
AutoAdminLogon: 0
DefaultUserName: Administrator
DefaultPassword:
AutoLogonCount:
AutoAdminLogon has two states. If it’s 0, then it’s disabled. If it’s 1, then it’s turned on.
AutoLogonCount indicates the remaining number of automatic logons. This number decreases by one every time the computer restarts, until it reaches 0. When it reaches 0, it changes AutoAdminLogon to 0 and clears the DefaultPassword. Setting this to any number below 0 will effectively set your computer to automatically logon forever.