MSS: (AutoAdminLogon) Enable Automatic Logon
Explanation
MSS: (AutoAdminLogon) Enable Automatic Logon
Use cases
Turns on automatic logon (AutoAdminLogon set to 1), a setting whose own title says not to use it. With the manual method the password is stored in plain text in the Winlogon key (DefaultPassword), and Microsoft points out that this value can be read remotely by the Authenticated Users group; anyone with physical access to the machine reaches its contents and the network.
Keep it disabled in production. For a kiosk or display machine in a secured room, Sysinternals Autologon is preferable because it stores the password as an LSA secret instead of in clear text.
Microsoft source: Configure Windows to automate logon
Registry
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon- Value name
AutoAdminLogon
| State | Value written |
|---|---|
| Enabled | REG_SZ = 1 |
| Disabled | REG_SZ = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: MSS-legacy/Pol_MSS_AutoAdminLogon
$k = 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AutoAdminLogon' -Value '1' -Type StringDisable
# Disable: MSS-legacy/Pol_MSS_AutoAdminLogon
$k = 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AutoAdminLogon' -Value '0' -Type StringRevert to "Not configured"
# Revert to "Not configured": MSS-legacy/Pol_MSS_AutoAdminLogon
$k = 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon'
Remove-ItemProperty -Path $k -Name 'AutoAdminLogon' -ErrorAction SilentlyContinueApplication
Microsoft Security Baseline (MSS, SecGuide) (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.