Open in the explorer

Do not show the "local access only" network icon

Ne pas afficher l'icône d'accès local uniquement

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Network › Network Connections FR: Configuration ordinateur › Stratégies › Modèles d'administration › Réseau › Connexions réseau
Supported on
At least Windows Server 2008 R2 or Windows 7 FR: Au minimum Windows Server 2008 R2 ou Windows 7
ADMX file
NetworkConnections.admx
Internal name
NetworkConnections/NC_DoNotShowLocalOnlyIcon

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.

French text from Windows 11 26H2

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
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: 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 DWord

Disable

# 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 DWord

Revert 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

Availability