Open in the explorer

Windows Defender Firewall: Protect all network connections

Pare-feu Windows Defender : protéger toutes les connexions réseau

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Network › Network Connections › Windows Defender Firewall › Domain Profile FR: Configuration ordinateur › Stratégies › Modèles d'administration › Réseau › Connexions réseau › Pare-feu Windows Defender › Profil du domaine
Supported on
At least Windows XP Professional with SP2 FR: Au minimum Windows XP Professionnel avec SP2
ADMX file
WindowsFirewall.admx
Internal name
WindowsFirewall/WF_EnableFirewall_Name_1

Explanation

Turns on Windows Defender Firewall.

If you enable this policy setting, Windows Defender Firewall runs and ignores the "Computer Configuration\Administrative Templates\Network\Network Connections\Prohibit use of Internet Connection Firewall on your DNS domain network" policy setting.

If you disable this policy setting, Windows Defender Firewall does not run. This is the only way to ensure that Windows Defender Firewall does not run and administrators who log on locally cannot start it.

If you do not configure this policy setting, administrators can use the Windows Defender Firewall component in Control Panel to turn Windows Defender Firewall on or off, unless the "Prohibit use of Internet Connection Firewall on your DNS domain network" policy setting overrides.

French text from Windows 11 26H2

Active le Pare-feu Windows Defender.

Si vous activez ce paramètre de stratégie, le Pare-feu Windows Defender s'exécutera en ignorant le paramètre de stratégie « Configuration ordinateur\Modèles d'administration\Réseau\Connexions réseau\Interdire l'utilisation de pare-feu de connexion Internet sur le réseau de votre domaine DNS ».

Si vous désactivez ce paramètre, le Pare-feu Windows Defender ne s'exécutera pas. Ceci est la seule façon de vous assurer que le Pare-feu Windows Defender ne s'exécute pas et que les administrateurs qui ouvrent une session locale ne peuvent pas le démarrer.

Si vous ne configurez pas ce paramètre de stratégie, les administrateurs pourront utiliser le composant Pare-feu Windows Defender du Panneau de configuration pour activer ou désactiver le Pare-feu Windows Defender, sauf si le paramètre de stratégie « Interdire l'utilisation de pare-feu de connexion Internet sur le réseau de votre domaine DNS » prévaut.

Use cases

Turns on Windows Defender Firewall in the domain profile and enforces the "on" state. It is the foundation of a GPO-managed firewall policy: rules configured by GPO only matter if the firewall is running.

Enable it in the private and public profiles too: a laptop that falls into the public profile must stay protected.

Microsoft source: Configure Windows Firewall rules with Group Policy

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile
Value name
EnableFirewall
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: WindowsFirewall/WF_EnableFirewall_Name_1
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableFirewall' -Value 1 -Type DWord

Disable

# Disable: WindowsFirewall/WF_EnableFirewall_Name_1
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableFirewall' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": WindowsFirewall/WF_EnableFirewall_Name_1
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile'
Remove-ItemProperty -Path $k -Name 'EnableFirewall' -ErrorAction SilentlyContinue

Availability