ペアリングに暗証番号 (PIN) を要求する のレジストリ値 RequirePinForPairingコンピューターHKLM\Software\Policies\Microsoft\Windows\Connect

ポリシー ID
RequirePinForPairing
適用対象
コンピューターの構成
サポートされるバージョン
Windows 10 以降
出典
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
カテゴリ
Windows コンポーネント › 接続

レジストリ

RequirePinForPairing

-コンピューター

RequirePinForPairing

REG_DWORDコンピューター
有効時の値
オプションの値に依存
要素
次の操作から 1 つ選択してください
オプション
項目保存される値
なし0
初回1
常時2
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Connect]

; 選択項目 (1 つだけ使用)
; なし
"RequirePinForPairing"=dword:00000000
; 初回
"RequirePinForPairing"=dword:00000001
; 常時
"RequirePinForPairing"=dword:00000002
CMD
:: 選択項目 (1 つだけ使用)

:: なし
reg add "HKLM\Software\Policies\Microsoft\Windows\Connect" /v "RequirePinForPairing" /t REG_DWORD /d 0 /f
:: 初回
reg add "HKLM\Software\Policies\Microsoft\Windows\Connect" /v "RequirePinForPairing" /t REG_DWORD /d 1 /f
:: 常時
reg add "HKLM\Software\Policies\Microsoft\Windows\Connect" /v "RequirePinForPairing" /t REG_DWORD /d 2 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\Connect' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# なし
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Connect' -Name 'RequirePinForPairing' -PropertyType DWord -Value 0 -Force | Out-Null
# 初回
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Connect' -Name 'RequirePinForPairing' -PropertyType DWord -Value 1 -Force | Out-Null
# 常時
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Connect' -Name 'RequirePinForPairing' -PropertyType DWord -Value 2 -Force | Out-Null