Inspekcja minimalnej długości hasła: wartość rejestru MinimumPasswordLengthAuditKomputerHKLM\System\CurrentControlSet\Control\SAM
- Kategoria
- Ustawienia zabezpieczeń › Zasady konta › Zasady haseł
- Zakres
- Konfiguracja komputera
- Źródło
- Windows 11 (wersja 26H2 · 26300.9457)
Rejestr
MinimumPasswordLengthAudit
REG_DWORDKomputerHKLM\System\CurrentControlSet\Control\SAM Bieżący klucz
- Wartość włączona
- Zależy od wartości opcji
- Element
- Inspekcja minimalnej długości hasła
- Typ wartości
- REG_DWORD
- Wartość minimalna
- 1
- Wartość maksymalna
- 128
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SAM] "MinimumPasswordLengthAudit"=dword:<wpisz wartość>
CMD
reg add "HKLM\System\CurrentControlSet\Control\SAM" /v "MinimumPasswordLengthAudit" /t REG_DWORD /d "<wpisz wartość>" /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 '<wpisz wartość>' -Force | Out-Null