Require pin for pairing: registry value RequirePinForPairingComputerHKLM\Software\Policies\Microsoft\Windows\Connect

Policy ID
RequirePinForPairing
Scope
Computer Configuration
Supported on
At least Windows 10
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Windows Components › Connect

Registry

RequirePinForPairing

-Computer

RequirePinForPairing

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Choose one of the following actions
Options
ItemStored value
Never0
First Time1
Always2
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Options (use only one)
; Never
"RequirePinForPairing"=dword:00000000
; First Time
"RequirePinForPairing"=dword:00000001
; Always
"RequirePinForPairing"=dword:00000002
CMD
:: Options (use only one)

:: Never
reg add "HKLM\Software\Policies\Microsoft\Windows\Connect" /v "RequirePinForPairing" /t REG_DWORD /d 0 /f
:: First Time
reg add "HKLM\Software\Policies\Microsoft\Windows\Connect" /v "RequirePinForPairing" /t REG_DWORD /d 1 /f
:: Always
reg add "HKLM\Software\Policies\Microsoft\Windows\Connect" /v "RequirePinForPairing" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\Connect' -Force | Out-Null

# Options (use only one)
# Never
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Connect' -Name 'RequirePinForPairing' -PropertyType DWord -Value 0 -Force | Out-Null
# First Time
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Connect' -Name 'RequirePinForPairing' -PropertyType DWord -Value 1 -Force | Out-Null
# Always
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Connect' -Name 'RequirePinForPairing' -PropertyType DWord -Value 2 -Force | Out-Null