パスワードの設定 のレジストリ値 PasswordComplexity ほか 3 件コンピューターHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS
- ポリシー ID
- LAPS_PasswordSettings
- 適用対象
- コンピューターの構成
- サポートされるバージョン
- 少なくとも Microsoft Windows 10 以降
- 出典
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
- カテゴリ
- システム › LAPS
レジストリ
PasswordComplexity
REG_DWORDコンピューター- 有効時の値
- オプションの値に依存
- 要素
- パスワードの複雑さ
| 項目 | 保存される値 |
|---|---|
| 大文字 | 1 |
| 大文字 + 小文字 | 2 |
| 大文字 + 小文字 + 数字 | 3 |
| 大文字 + 小文字 + 数字 + 特殊文字 | 4 |
| 大文字 + 小文字 + 数字 + 特殊文字 (読みやすさの向上) | 5 |
| パスフレーズ (長い単語) | 6 |
| パスフレーズ (短い単語) | 7 |
| パスフレーズ (一意のプレフィックスを含む短い単語) | 8 |
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS] ; 選択項目 (1 つだけ使用) ; 大文字 "PasswordComplexity"=dword:00000001 ; 大文字 + 小文字 "PasswordComplexity"=dword:00000002 ; 大文字 + 小文字 + 数字 "PasswordComplexity"=dword:00000003 ; 大文字 + 小文字 + 数字 + 特殊文字 "PasswordComplexity"=dword:00000004 ; 大文字 + 小文字 + 数字 + 特殊文字 (読みやすさの向上) "PasswordComplexity"=dword:00000005 ; パスフレーズ (長い単語) "PasswordComplexity"=dword:00000006 ; パスフレーズ (短い単語) "PasswordComplexity"=dword:00000007 ; パスフレーズ (一意のプレフィックスを含む短い単語) "PasswordComplexity"=dword:00000008
CMD
:: 選択項目 (1 つだけ使用) :: 大文字 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "PasswordComplexity" /t REG_DWORD /d 1 /f :: 大文字 + 小文字 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "PasswordComplexity" /t REG_DWORD /d 2 /f :: 大文字 + 小文字 + 数字 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "PasswordComplexity" /t REG_DWORD /d 3 /f :: 大文字 + 小文字 + 数字 + 特殊文字 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "PasswordComplexity" /t REG_DWORD /d 4 /f :: 大文字 + 小文字 + 数字 + 特殊文字 (読みやすさの向上) reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "PasswordComplexity" /t REG_DWORD /d 5 /f :: パスフレーズ (長い単語) reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "PasswordComplexity" /t REG_DWORD /d 6 /f :: パスフレーズ (短い単語) reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "PasswordComplexity" /t REG_DWORD /d 7 /f :: パスフレーズ (一意のプレフィックスを含む短い単語) reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "PasswordComplexity" /t REG_DWORD /d 8 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Force | Out-Null # 選択項目 (1 つだけ使用) # 大文字 New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PasswordComplexity' -PropertyType DWord -Value 1 -Force | Out-Null # 大文字 + 小文字 New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PasswordComplexity' -PropertyType DWord -Value 2 -Force | Out-Null # 大文字 + 小文字 + 数字 New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PasswordComplexity' -PropertyType DWord -Value 3 -Force | Out-Null # 大文字 + 小文字 + 数字 + 特殊文字 New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PasswordComplexity' -PropertyType DWord -Value 4 -Force | Out-Null # 大文字 + 小文字 + 数字 + 特殊文字 (読みやすさの向上) New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PasswordComplexity' -PropertyType DWord -Value 5 -Force | Out-Null # パスフレーズ (長い単語) New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PasswordComplexity' -PropertyType DWord -Value 6 -Force | Out-Null # パスフレーズ (短い単語) New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PasswordComplexity' -PropertyType DWord -Value 7 -Force | Out-Null # パスフレーズ (一意のプレフィックスを含む短い単語) New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PasswordComplexity' -PropertyType DWord -Value 8 -Force | Out-Null
PasswordLength
REG_DWORDコンピューター- 有効時の値
- オプションの値に依存
- 要素
- パスワードの長さ
- 値の種類
- REG_DWORD
- 最小値
- 8
- 最大値
- 64
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS] ; 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください "PasswordLength"=dword:<値を入力>
CMD
:: 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "PasswordLength" /t REG_DWORD /d "<値を入力>" /f
PowerShell
# 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Force | Out-Null New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PasswordLength' -PropertyType DWord -Value '<値を入力>' -Force | Out-Null
PasswordAgeDays
REG_DWORDコンピューター- 有効時の値
- オプションの値に依存
- 要素
- パスワードの有効期間 (日数)
- 値の種類
- REG_DWORD
- 最小値
- 1
- 最大値
- 365
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS] ; 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください "PasswordAgeDays"=dword:<値を入力>
CMD
:: 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "PasswordAgeDays" /t REG_DWORD /d "<値を入力>" /f
PowerShell
# 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Force | Out-Null New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PasswordAgeDays' -PropertyType DWord -Value '<値を入力>' -Force | Out-Null
PassphraseLength
REG_DWORDコンピューター- 有効時の値
- オプションの値に依存
- 要素
- パスフレーズの長さ (単語数)
- 値の種類
- REG_DWORD
- 最小値
- 3
- 最大値
- 10
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS] ; 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください "PassphraseLength"=dword:<値を入力>
CMD
:: 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "PassphraseLength" /t REG_DWORD /d "<値を入力>" /f
PowerShell
# 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Force | Out-Null New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PassphraseLength' -PropertyType DWord -Value '<値を入力>' -Force | Out-Null