Zmniejsz restrykcyjność limitów minimalnej długości hasła: wartość rejestru RelaxMinimumPasswordLengthLimitsKomputerHKLM\System\CurrentControlSet\Control\SAM

Kategoria
Ustawienia zabezpieczeń › Zasady konta › Zasady haseł
Zakres
Konfiguracja komputera
Źródło
Windows 11 (wersja 26H2 · 26300.9457)

Rejestr

RelaxMinimumPasswordLengthLimits

REG_DWORDKomputer
Wartość włączona
1
Wartość wyłączona
0
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SAM]

; Opcje (użyj tylko jednej)
; Włączone
"RelaxMinimumPasswordLengthLimits"=dword:00000001
; Wyłączone
"RelaxMinimumPasswordLengthLimits"=dword:00000000
CMD
:: Opcje (użyj tylko jednej)

:: Włączone
reg add "HKLM\System\CurrentControlSet\Control\SAM" /v "RelaxMinimumPasswordLengthLimits" /t REG_DWORD /d 1 /f
:: Wyłączone
reg add "HKLM\System\CurrentControlSet\Control\SAM" /v "RelaxMinimumPasswordLengthLimits" /t REG_DWORD /d 0 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKLM:\System\CurrentControlSet\Control\SAM' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Włączone
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\SAM' -Name 'RelaxMinimumPasswordLengthLimits' -PropertyType DWord -Value 1 -Force | Out-Null
# Wyłączone
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\SAM' -Name 'RelaxMinimumPasswordLengthLimits' -PropertyType DWord -Value 0 -Force | Out-Null