Open in the explorer

Prevent users and apps from accessing dangerous websites

Empêche les utilisateurs et les applications d'accéder à des sites Web dangereux

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Microsoft Defender Antivirus › Microsoft Defender Exploit Guard › Network Protection FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Antivirus Microsoft Defender › Microsoft Defender Exploit Guard › Protection du réseau
Supported on
At least Windows Server 2016, Windows 10 Version 1709 FR: Windows Server 2016, Windows 10 version 1709 ou versions supérieures
ADMX file
WindowsDefender.admx
Internal name
WindowsDefender/ExploitGuard_EnableNetworkProtection

Explanation

Enable or disable Microsoft Defender Exploit Guard network protection to prevent employees from using any application to access dangerous domains that may host phishing scams, exploit-hosting sites, and other malicious content on the Internet.

Enabled:
Specify the mode in the Options section:
-Block: Users and applications will not be able to access dangerous domains
-Audit Mode: Users and applications can connect to dangerous domains, however if this feature would have blocked access if it were set to Block, then a record of the event will be in the event logs.

Disabled:
Users and applications will not be blocked from connecting to dangerous domains.

Not configured:
Same as Disabled.

French text from Windows 11 26H2

Active ou désactive la protection de réseau Microsoft Defender Exploit Guard pour empêcher les employés d'utiliser des applications permettant d'accéder à des domaines dangereux (pouvant héberger des sites web de hameçonnage, exploiter un hébergement…) et à d'autres contenus malveillants d'Internet.

Activé :
Spécifier le mode dans la section Option :
- Bloquer : Les utilisateurs et les applications ne pourront pas accéder à des domaines dangereux
- Mode audit : Les utilisateurs et les applications peuvent se connecter à des domaines dangereux. Toutefois, dans les cas où cette fonctionnalité bloque l'accès lorsque le paramètre Bloquer est activé, un rapport sur l'événement s'affiche dans les journaux d'événements.

Désactivé :
Les utilisateurs et les applications pourront se connecter librement à des domaines dangereux.

Non configuré :
Identique à Désactivé.

Use cases

Prevents users and applications from connecting to dangerous domains that host phishing, exploits or other malicious content, with three choices: Disabled (the default), Block (1) or Audit mode (2), where the event is only logged.

Start in audit mode in a test environment, as Microsoft recommends, then move to block. Network protection requires real-time protection to be on, and on Windows 10, Windows 11 and Windows Server 1803 or later, behaviour monitoring and cloud-delivered protection as well. On Windows Server it must also be enabled explicitly with Set-MpPreference -AllowNetworkProtectionOnWinServer, otherwise Defender ignores the configuration.

Microsoft source: Turn on network protection

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Network Protection
Value name
EnableNetworkProtection
StateValue written
Enablednot defined in the ADMX (see the options below)
Disablednot defined in the ADMX (see the options below)

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.

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: WindowsDefender/ExploitGuard_EnableNetworkProtection
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Network Protection'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'EnableNetworkProtection' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)
#
# Possible options:
#   Disable (Default) = 0
#   Block = 1
#   Audit Mode = 2
Set-ItemProperty -Path $k -Name 'EnableNetworkProtection' -Value 0 -Type DWord

Disable

# Disable: WindowsDefender/ExploitGuard_EnableNetworkProtection
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Network Protection'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'EnableNetworkProtection' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": WindowsDefender/ExploitGuard_EnableNetworkProtection
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Network Protection'
Remove-ItemProperty -Path $k -Name 'EnableNetworkProtection' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
ExploitGuard_EnableNetworkProtectionDrop-down listenumEnableNetworkProtectionREG_DWORD
Required · Default choice (UI): #0
LabelValue
Disable (Default)REG_DWORD = 0
BlockREG_DWORD = 1
Audit ModeREG_DWORD = 2

Availability

Windows Server