Controle op minimale wachtwoordlengte: registerwaarde MinimumPasswordLengthAuditComputerHKLM\System\CurrentControlSet\Control\SAM
- Categorie
- Beveiligingsinstellingen › Accountbeleid › Wachtwoordbeleid
- Bereik
- Computerconfiguratie
- Bron
- Windows 11 (versie 26H2 · 26300.9457)
Register
MinimumPasswordLengthAudit
REG_DWORDComputerHKLM\System\CurrentControlSet\Control\SAM Huidige sleutel
- Waarde bij ingeschakeld
- Afhankelijk van de waarde van de optie
- Element
- Controle op minimale wachtwoordlengte
- Waardetype
- REG_DWORD
- Minimumwaarde
- 1
- Maximumwaarde
- 128
Toepassen met .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SAM] "MinimumPasswordLengthAudit"=dword:<waarde invoeren>
CMD
reg add "HKLM\System\CurrentControlSet\Control\SAM" /v "MinimumPasswordLengthAudit" /t REG_DWORD /d "<waarde invoeren>" /f
PowerShell
New-Item -Path 'HKLM:\System\CurrentControlSet\Control\SAM' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\SAM' -Name 'MinimumPasswordLengthAudit' -PropertyType DWord -Value '<waarde invoeren>' -Force | Out-Null