Turn off PNRP cloud creation
Désactiver la création du nuage PNRP
Explanation
This policy setting enables or disables PNRP cloud creation.
PNRP is a distributed name resolution protocol allowing Internet hosts to publish peer names with a corresponding Internet Protocol version 6 (IPv6) address. Other hosts can then resolve the name, retrieve the corresponding address, and establish peer-to-peer (P2P) connections. The PNRP cloud is a group of connected PNRP nodes, in which connections exist between peers so that a node in the PNRP cloud can resolve names published by other nodes.
PNRP creates a global cloud if the computer has a global IPv6 address, but creates a site-local cloud if the computer has a site-local address.
If you enable this policy setting, PNRP does not create a cloud, and applications cannot use this cloud to publish or resolve names regardless of whether the computer has an IPv6 address that matches the cloud scope.
If you disable or do not configure this policy setting, all PNRP clouds are turned on by default, and PNRP creates a cloud if the computer has an IPv6 address compatible with the cloud’s scope.
Ce paramètre de stratégie active ou désactive la création de nuage PNRP.
PNRP est un protocole de résolution de noms distribué permettant aux hôtes Internet de publier les noms de leurs pairs avec une adresse IPv6 (Internet Protocol version 6) correspondante. D’autres hôtes peuvent ensuite résoudre le nom, récupérer l’adresse correspondante et établir des connexions P2P (pair à pair). Le nuage PNRP est un groupe de nœuds PNRP connectés, dans lequel il existe des connexions entre les pairs de telle sorte qu’un nœud du nuage PNRP peut résoudre les noms publiés par d’autres nœuds.
PNRP crée un nuage global si l’ordinateur possède une adresse IPv6 globale, mais il crée un nuage local au site si l’ordinateur possède une adresse locale au site.
Si vous activez ce paramètre de stratégie, PNRP ne crée pas de nuage et les applications ne peuvent donc pas l’utiliser pour publier ou résoudre des noms, même si l’ordinateur possède une adresse IPv6 qui correspond à l’étendue du nuage.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, tous les nuages PNRP sont activés par défaut et PNRP crée un nuage si l’ordinateur possède une adresse IPv6 compatible avec l’étendue du nuage.
Registry
HKEY_LOCAL_MACHINE\Software\policies\Microsoft\Peernet\Pnrp\IPv6-Global- Value name
Disabled
| 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_Disabled_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 'Disabled' -Value 1 -Type DWordDisable
# Disable: p2p-pnrp/PNRP_Disabled_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 'Disabled' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": p2p-pnrp/PNRP_Disabled_1
$k = 'HKLM:\Software\policies\Microsoft\Peernet\Pnrp\IPv6-Global'
Remove-ItemProperty -Path $k -Name 'Disabled' -ErrorAction SilentlyContinue