Turn off notifications when a connection has only limited or no connectivity
Désactiver les notifications lorsqu’une connexion ne dispose que d’une connectivité limitée ou d’aucune connectivité
Explanation
This policy setting allows you to manage whether notifications are shown to the user when a DHCP-configured connection is unable to retrieve an IP address from a DHCP server. This is often signified by the assignment of an automatic private IP address"(i.e. an IP address in the range 169.254.*.*). This indicates that a DHCP server could not be reached or the DHCP server was reached but unable to respond to the request with a valid IP address. By default, a notification is displayed providing the user with information on how the problem can be resolved.
If you enable this policy setting, this condition will not be reported as an error to the user.
If you disable or do not configure this policy setting, a DHCP-configured connection that has not been assigned an IP address will be reported via a notification, providing the user with information as to how the problem can be resolved.
Ce paramètre de stratégie vous permet d’indiquer si les notifications sont présentées à l’utilisateur lorsqu’une connexion DHCP ne parvient pas à récupérer une adresse IP sur un serveur DHCP. Ceci est souvent indiqué par l’affectation d’une adresse IP privée automatique (une adresse IP située dans l’étendue 169.254.*.*). Cette affectation signifie qu’aucun serveur DHCP n’a pu être joint, ou bien que le serveur DHCP a été joint mais n’a pas pu fournir une adresse IP valide. Par défaut, une notification est affichée pour donner à l’utilisateur des informations sur la résolution possible du problème.
Si vous activez ce paramètre de stratégie, cette condition n’est pas signalée en tant qu’erreur à l’utilisateur.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les connexions DHCP auxquelles aucune adresse IP n’a été affectée sont signalées par une notification, offrant à l’utilisateur des informations sur la résolution du problème.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Network Connections- Value name
NC_IpStateChecking
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 0 |
| Disabled | REG_DWORD = 1 |
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: NetworkConnections/NC_IpStateChecking
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Network Connections'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NC_IpStateChecking' -Value 0 -Type DWordDisable
# Disable: NetworkConnections/NC_IpStateChecking
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Network Connections'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NC_IpStateChecking' -Value 1 -Type DWordRevert to "Not configured"
# Revert to "Not configured": NetworkConnections/NC_IpStateChecking
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Network Connections'
Remove-ItemProperty -Path $k -Name 'NC_IpStateChecking' -ErrorAction SilentlyContinue