パスワードの最小文字数の監査 のレジストリ値 MinimumPasswordLengthAuditコンピューターHKLM\System\CurrentControlSet\Control\SAM

カテゴリ
セキュリティの設定 › アカウント ポリシー › パスワードのポリシー
適用対象
コンピューターの構成
出典
Windows 11 (バージョン 26H2 · 26300.9457)

レジストリ

MinimumPasswordLengthAudit

REG_DWORDコンピューター
有効時の値
オプションの値に依存
要素
パスワードの最小文字数の監査
値の種類
REG_DWORD
最小値
1
最大値
128
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SAM]
"MinimumPasswordLengthAudit"=dword:<値を入力>
CMD
reg add "HKLM\System\CurrentControlSet\Control\SAM" /v "MinimumPasswordLengthAudit" /t REG_DWORD /d "<値を入力>" /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 '<値を入力>' -Force | Out-Null