Open in the explorer

Set PNRP cloud to resolve only

Définir le nuage PNRP sur la résolution uniquement

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Network › Microsoft Peer-to-Peer Networking Services › Peer Name Resolution Protocol › Global Clouds FR: Configuration ordinateur › Stratégies › Modèles d'administration › Réseau › Activer les services réseau pair à pair Microsoft › Protocole PNRP › Nuages globaux
Supported on
At least Windows XP Professional with SP2 FR: Au minimum Windows XP Professionnel avec SP2
ADMX file
p2p-pnrp.admx
Internal name
p2p-pnrp/PNRP_SearchOnly_1

Explanation

This policy setting limits a node to resolving, but not publishing, names in a specific Peer Name Resolution Protocol (PNRP) cloud.

This policy setting forces computers to act as clients in peer-to-peer (P2P) scenarios. For example, a client computer can detect other computers to initiate chat sessions, but other computers cannot detect that client and initiate sessions with it.

If you enable this policy setting, this computer cannot register PNRP names, and cannot help other computers perform PNRP lookups.

If you disable or do not configure this policy setting, this computer can publish PNRP names and help other computers perform PNRP lookups.

French text from Windows 11 26H2

Ce paramètre de stratégie restreint un nœud à la résolution, mais pas à la publication, des noms dans un nuage PNRP (Peer Name Resolution Protocol) donné.

Ce paramètre de stratégie oblige les ordinateurs à se comporter comme des clients dans des scénarios P2P (pair à pair). Par exemple, un ordinateur client peut détecter d’autres ordinateurs et lancer des sessions de conversation, mais les autres ne peuvent pas le détecter pour lancer une session avec lui.

Si vous activez ce paramètre de stratégie, cet ordinateur ne peut pas inscrire les noms PRNP et ne peut pas aider les autres ordinateurs à effectuer des recherches PNRP.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, cet ordinateur peut publier les noms PNRP et aider les autres ordinateurs à effectuer des recherches PNRP.

Registry

HKEY_LOCAL_MACHINE\Software\policies\Microsoft\Peernet\Pnrp\IPv6-Global
Value name
SearchOnly
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: p2p-pnrp/PNRP_SearchOnly_1
$k = 'HKLM:\Software\policies\Microsoft\Peernet\Pnrp\IPv6-Global'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SearchOnly' -Value 1 -Type DWord

Disable

# Disable: p2p-pnrp/PNRP_SearchOnly_1
$k = 'HKLM:\Software\policies\Microsoft\Peernet\Pnrp\IPv6-Global'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SearchOnly' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": p2p-pnrp/PNRP_SearchOnly_1
$k = 'HKLM:\Software\policies\Microsoft\Peernet\Pnrp\IPv6-Global'
Remove-ItemProperty -Path $k -Name 'SearchOnly' -ErrorAction SilentlyContinue

Availability