Do not show the "local access only" network icon
Ne pas afficher l'icône d'accès local uniquement
Explanation
Specifies whether or not the "local access only" network icon will be shown.
When enabled, the icon for Internet access will be shown in the system tray even when a user is connected to a network with local access only.
If you disable this setting or do not configure it, the "local access only" icon will be used when a user is connected to a network with local access only.
Spécifie si l'icône réseau d'accès local uniquement s'affiche.
Lorsque ce paramètre est activé, l'icône d'accès à Internet s'affiche dans la barre d'état système même si l'utilisateur est connecté à un réseau d'accès local uniquement.
Si vous désactivez ce paramètre ou ne le configurez pas, l'icône d'accès local uniquement est utilisé lorsqu'un utilisateur est connecté à un réseau avec accès local uniquement.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Network Connections- Value name
NC_DoNotShowLocalOnlyIcon
| 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: NetworkConnections/NC_DoNotShowLocalOnlyIcon
$k = 'HKLM:\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_DoNotShowLocalOnlyIcon' -Value 1 -Type DWordDisable
# Disable: NetworkConnections/NC_DoNotShowLocalOnlyIcon
$k = 'HKLM:\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_DoNotShowLocalOnlyIcon' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": NetworkConnections/NC_DoNotShowLocalOnlyIcon
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Network Connections'
Remove-ItemProperty -Path $k -Name 'NC_DoNotShowLocalOnlyIcon' -ErrorAction SilentlyContinue