Set PNRP cloud to resolve only
Définir le nuage PNRP sur la résolution uniquement
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert 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