Domain member: Maximum machine account password age: registry value MaximumPasswordAgeComputerHKLM\System\CurrentControlSet\Services\Netlogon\Parameters
- Category
- Security Settings › Local Policies › Security Options
- Scope
- Computer Configuration
- Source
- Windows 11 (version 26H2 · 26300.9457)
Registry
MaximumPasswordAge
REG_DWORDComputer- Enabled value
- Depends on the option value
- Element
- Domain member: Maximum machine account password age
- Value type
- REG_DWORD
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Netlogon\Parameters] "MaximumPasswordAge"=dword:<enter value>
CMD
reg add "HKLM\System\CurrentControlSet\Services\Netlogon\Parameters" /v "MaximumPasswordAge" /t REG_DWORD /d "<enter value>" /f
PowerShell
New-Item -Path 'HKLM:\System\CurrentControlSet\Services\Netlogon\Parameters' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\Netlogon\Parameters' -Name 'MaximumPasswordAge' -PropertyType DWord -Value '<enter value>' -Force | Out-Null