Prohibit installation and configuration of Network Bridge on your network.
Interdisez l’installation et la configuration d’un pont réseau sur votre réseau.
Explanation
Determines whether a user can install and configure the Network Bridge.
Important: This setting is location aware on AD domain-joined devices. It only applies when a computer is connected to the same DNS domain network it was connected to when the setting was refreshed on that computer. If a computer is connected to a DNS domain network other than the one it was connected to when the setting was refreshed, this setting doesn't apply. On Entra-joined devices, this setting will apply to all networks.
The Network Bridge allows users to create a layer 2 MAC bridge, enabling them to connect two or more network segements together. This connection appears in the Network Connections folder.
If you disable this setting or do not configure it, the user will be able to create and modify the configuration of a Network Bridge. Enabling this setting does not remove an existing Network Bridge from the user's computer.
Détermine si un utilisateur peut installer et configurer le Pont Réseau.
Important : Ce paramètre est sensible à l'emplacement sur les appareils joints à un domaine AD. Il ne s'applique que lorsqu'un ordinateur est connecté au même réseau de domaine DNS auquel il était connecté lorsque le paramètre a été actualisé sur cet ordinateur. Si un ordinateur est connecté à un réseau de domaine DNS autre que celui auquel il était connecté lorsque le paramètre a été actualisé, ce paramètre ne s'applique pas. Sur les appareils joints à Entra, ce paramètre s'appliquera à tous les réseaux.
Le Pont Réseau permet aux utilisateurs de créer un pont MAC de couche 2, leur permettant de connecter deux ou plusieurs segments de réseau ensemble. Cette connexion apparaît dans le dossier Connexions Réseau.
Si vous désactivez ce paramètre ou ne le configurez pas, l'utilisateur pourra créer et modifier la configuration d'un Pont Réseau. Activer ce paramètre ne supprime pas un Pont Réseau existant de l'ordinateur de l'utilisateur.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Network Connections- Value name
NC_AllowNetBridge_NLA
| 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_AllowNetBridge_NLA
$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_AllowNetBridge_NLA' -Value 0 -Type DWordDisable
# Disable: NetworkConnections/NC_AllowNetBridge_NLA
$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_AllowNetBridge_NLA' -Value 1 -Type DWordRevert to "Not configured"
# Revert to "Not configured": NetworkConnections/NC_AllowNetBridge_NLA
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Network Connections'
Remove-ItemProperty -Path $k -Name 'NC_AllowNetBridge_NLA' -ErrorAction SilentlyContinue