Wymagaj numeru PIN do parowania: wartość rejestru RequirePinForPairingKomputerHKLM\Software\Policies\Microsoft\Windows\Connect

Identyfikator zasady
RequirePinForPairing
Zakres
Konfiguracja komputera
Obsługiwane w systemach
Co najmniej Windows 10
Źródło
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (wersja 1.0)
Kategoria
Składniki systemu Windows › Połącz

Rejestr

RequirePinForPairing

-Komputer

RequirePinForPairing

REG_DWORDKomputer
Wartość włączona
Zależy od wartości opcji
Element
Wybierz jedną z następujących akcji
Opcje
PozycjaZapisana wartość
Nigdy0
Za pierwszym razem1
Zawsze2
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opcje (użyj tylko jednej)
; Nigdy
"RequirePinForPairing"=dword:00000000
; Za pierwszym razem
"RequirePinForPairing"=dword:00000001
; Zawsze
"RequirePinForPairing"=dword:00000002
CMD
:: Opcje (użyj tylko jednej)

:: Nigdy
reg add "HKLM\Software\Policies\Microsoft\Windows\Connect" /v "RequirePinForPairing" /t REG_DWORD /d 0 /f
:: Za pierwszym razem
reg add "HKLM\Software\Policies\Microsoft\Windows\Connect" /v "RequirePinForPairing" /t REG_DWORD /d 1 /f
:: Zawsze
reg add "HKLM\Software\Policies\Microsoft\Windows\Connect" /v "RequirePinForPairing" /t REG_DWORD /d 2 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\Connect' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Nigdy
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Connect' -Name 'RequirePinForPairing' -PropertyType DWord -Value 0 -Force | Out-Null
# Za pierwszym razem
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Connect' -Name 'RequirePinForPairing' -PropertyType DWord -Value 1 -Force | Out-Null
# Zawsze
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Connect' -Name 'RequirePinForPairing' -PropertyType DWord -Value 2 -Force | Out-Null