Prevent users and apps from accessing dangerous websites
Empêche les utilisateurs et les applications d'accéder à des sites Web dangereux
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.
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
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX (see the options below) |
| Disabled | not 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 DWordDisable
# 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 SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ExploitGuard_EnableNetworkProtection | Drop-down listenum | EnableNetworkProtection | REG_DWORD | Required · Default choice (UI): #0
|