Interactive logon: Machine account lockout threshold: registry value MaxDevicePasswordFailedAttemptsComputerHKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System

Category
Security Settings › Local Policies › Security Options
Scope
Computer Configuration
Source
Windows 11 (version 26H2 · 26300.9457)

Registry

MaxDevicePasswordFailedAttempts

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Interactive logon: Machine account lockout threshold
Value type
REG_DWORD
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"MaxDevicePasswordFailedAttempts"=dword:<enter value>
CMD
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "MaxDevicePasswordFailedAttempts" /t REG_DWORD /d "<enter value>" /f
PowerShell
New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'MaxDevicePasswordFailedAttempts' -PropertyType DWord -Value '<enter value>' -Force | Out-Null