The Cybermatic Signal · Fix-it Guides · Devices · Windows
← All guides · Time to fix: 10 minutes per device · Windows
Automatic logon is a Windows feature that stores a username and password in the registry so the machine signs in without prompting anyone. It shows up most often on shared workstations, kiosk-style machines, or PCs that were set up for convenience and never revisited. Disabling it takes under ten minutes per machine.
The fix, verified
Automatic logon configured
| Severity | high · Windows |
| Where to click | Run netplwiz → check 'Users must enter a user name and password'. Also delete DefaultPassword under HKLM\...\Winlogon if present. |
| Or run | Set-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name AutoAdminLogon -Value 0; Remove-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name DefaultPassword -ErrorAction SilentlyContinue |
| Maps to | CIS Win 18.4.1HIPAA 164.312(a) |
When AutoAdminLogon is enabled, Windows reads credentials from the registry key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon and uses them to sign in automatically at startup. The password is stored in that same key, in plaintext, under the value DefaultPassword. Any user who can open Registry Editor — or who boots from a USB drive and mounts the hive offline — can read it. Beyond the credential exposure, the bigger immediate risk is physical access: anyone who walks up to the machine while it is booting, or after a restart, gets a fully authenticated Windows session with no password prompt at all.
A realistic scenario: a laptop configured this way is left unattended at a front desk. A visitor restarts it, waits thirty seconds, and is sitting in a domain user session with access to shared drives, email, and whatever else that account can reach. No tools required.
Open Registry Editor (regedit.exe) and navigate to HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon. Look at two values: AutoAdminLogon and DefaultPassword. If AutoAdminLogon is set to 1, automatic logon is active. If DefaultPassword exists at all, a credential is stored there regardless of whether auto-logon is currently on. Either condition needs to be remediated.
There are two ways to make the change: through the user accounts UI, or with a single PowerShell command. Both accomplish the same thing.
Using the UI: press Win+R, type netplwiz, and press Enter. In the User Accounts dialog, check the box labeled 'Users must enter a user name and password to use this computer'. Click Apply, then OK. After that, go back to Registry Editor and check whether DefaultPassword still exists under the Winlogon key. If it does, right-click it and choose Delete.
Using PowerShell (run as Administrator): the command below sets AutoAdminLogon to 0 and removes DefaultPassword in one step. The -ErrorAction SilentlyContinue on the second part means it will not throw an error if DefaultPassword was never there.
Set-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name AutoAdminLogon -Value 0; Remove-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name DefaultPassword -ErrorAction SilentlyContinue
Restart the machine and confirm it stops at the Windows sign-in screen before proceeding.
If the machine was intentionally set up as a kiosk or a shared display — a lobby screen, a point-of-sale terminal, a conference room PC — disabling automatic logon will mean someone has to enter credentials after every restart. For true kiosk use cases, the right solution is Windows Assigned Access (kiosk mode), which locks the session to a single app without storing a reusable plaintext password in the registry. For shared workstations, consider a generic local account with a known password posted nearby only if the physical space is controlled, but understand that is still a weaker posture than individual accounts.
If a scheduled task or a startup script was relying on the machine being signed in automatically, you will need to either convert that task to run as a service account under Task Scheduler with 'Run whether user is logged on or not', or arrange for a person to sign in before the task is needed.
The most reliable way to prevent this from coming back is a Group Policy preference or a registry policy that enforces AutoAdminLogon = 0 across all machines in scope. In Group Policy, you can use Computer Configuration > Preferences > Windows Settings > Registry to set the value and have it reapplied at every policy refresh cycle. If you manage endpoints through Intune, a custom OMA-URI policy targeting the same registry path achieves the same result. Either way, add a periodic check — quarterly is reasonable — to confirm the value has not drifted, especially on machines that are not domain-joined or that receive infrequent policy updates.
It is stored in plaintext. The DefaultPassword value under the Winlogon registry key is a plain string with no encryption. Any local administrator, or anyone with offline access to the drive, can read it directly.
Yes. You can deploy the PowerShell command as a Group Policy startup script, a scheduled task pushed via GPO, or a remediation script through Intune. All three approaches can target every machine in scope without requiring hands-on access to each one.
No. Windows Hello, PIN, and other credential providers are separate from the AutoAdminLogon registry setting. Disabling AutoAdminLogon only stops the unattended registry-credential sign-in; users can still sign in with whatever method is configured on their account.
Is this open in your environment?
Cybermatic checks for "Automatic logon configured" automatically — on every device, every day — and shows you the exact fix above next to each one it finds. The free scan takes about ten minutes and needs no credit card.
Run the free scan All guides →Part of The Cybermatic Signal. Written by the Cybermatic editorial agent from the configuration check Cybermatic runs for this setting (ID win-autologon) and reviewed before publication. The click path, command and caution in the fix card are the vendor's documented procedure as of 2026-11-21. Found an error? Write to info@cybermatic.ai.
BriefingIssuesFlashGuidesInsurance checkDomain checkSubscribe
Cybermatic.ai by Ironhawk Group · 9330 Lyndon B Johnson Fwy, Suite 900 · Dallas, TX 75243 · Privacy · cybermatic.ai