Want to experience Defender for Endpoint? Sign up for a free trial.

Network protection helps to prevent employees from using any application to access dangerous domains that may host phishing scams, exploits, and other malicious content on the internet. You can audit network protection in a test environment to view which apps would be blocked before you enable it.

Learn more about network filtering configuration options.

Check if network protection is enabled

Check if network protection has been enabled on a local device by using Registry editor.

  1. Select the Start button in the task bar and type regedit to open Registry editor.
  2. Choose HKEY_LOCAL_MACHINE from the side menu.
  3. Navigate through the nested menus to SOFTWARE > Policies > Microsoft > Windows Defender > Windows Defender Exploit Guard > Network Protection.

If the Key is missing, Navigate to SOFTWARE > Microsoft > Windows Defender > Windows Defender Exploit Guard > Network Protection.

  1. Select EnableNetworkProtection to see the current state of network protection on the device:
    • 0, or Off
    • 1, or On
    • 2, or Audit mode

    Network Protection registry key.

Enable network protection

Enable network protection by using any of these methods:


  1. Type powershell in the Start menu, right-click Windows PowerShell and select Run as administrator.
  2. Enter the following cmdlet:

    Set-MpPreference -EnableNetworkProtection Enabled
  3. Optional: Enable the feature in audit mode using the following cmdlet:

    Set-MpPreference -EnableNetworkProtection AuditMode

    Use Disabled instead of AuditMode or Enabled to turn off the feature.

Mobile device management (MDM)

Use the ./Vendor/MSFT/Policy/Config/Defender/EnableNetworkProtection configuration service provider (CSP) to enable or disable network protection or enable audit mode.

Microsoft Endpoint Manager

  1. Sign into the Microsoft Endpoint Manager admin center (https://endpoint.microsoft.com).
  2. Go to Devices > Configuration profiles > Create profile.
  3. In the Create a profile flyout, select Platform and choose the Profile Type as Templates.
  4. In the Template name, Choose Endpoint protection from the list of templates, and then select Create.
  5. Go to Endpoint protection > Basics, provide a name for your profile, and then select Next.
  6. In the Configuration settings section, go to Microsoft Defender Exploit Guard > Network filtering > Network protection > Enable or Audit. Select Next.
  7. Select the appropriate Scope tagsAssignments, and Applicability rules as required by your organization. Admins can set more requirements.
  8. Review all the information, and then select Create.

Group Policy

Use the following procedure to enable network protection on domain-joined computers or on a standalone computer.

  1. On a standalone computer, go to Start and then type and select Edit group policy.


    On a domain-joined Group Policy management computer, open the Group Policy Management Console, right-click the Group Policy Object you want to configure and select Edit.

  2. In the Group Policy Management Editor, go to Computer configuration and select Administrative templates.
  3. Expand the tree to Windows components > Microsoft Defender Antivirus > Windows Defender Exploit Guard > Network protection.


    On older versions of Windows, the group policy path may say “Windows Defender Antivirus” instead of “Microsoft Defender Antivirus.”

  4. Double-click the Prevent users and apps from accessing dangerous websites setting and set the option to Enabled. In the options section, you must specify one of the following options:
    • Block – Users can’t access malicious IP addresses and domains.
    • Disable (Default) – The Network protection feature won’t work. Users won’t be blocked from accessing malicious domains.
    • Audit Mode – If a user visits a malicious IP address or domain, an event will be recorded in the Windows event log. However, the user won’t be blocked from visiting the address.


    To fully enable network protection, you must set the Group Policy option to Enabled and also select Block in the options drop-down menu.

Confirm network protection is enabled on a local computer by using Registry editor:

  1. Select Start and type regedit to open Registry Editor.
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Network Protection\EnableNetworkProtection
  3. Select EnableNetworkProtection and confirm the value:
    • 0=Off
    • 1=On
    • 2=Audit

Microsoft Endpoint Configuration Manager

  1. Open the Configuration Manager console.
  2. Go to Assets and Compliance > Endpoint Protection > Windows Defender Exploit Guard.
  3. Select Create Exploit Guard Policy from the ribbon to create a new policy.
    • To edit an existing policy, select the policy, then select Properties from either the ribbon or the right-click menu. Edit the Configure network protection option from the Network Protection tab.
  4. On the General page, specify a name for the new policy and verify the Network protection option is enabled.
  5. On the Network protection page, select one of the following settings for the Configure network protection option:
    • Block
    • Audit
    • Disabled
  6. Complete the rest of the steps, and save the policy.
  7. From the ribbon, select Deploy to deploy the policy to a collection.


Once you deploy an Exploit Guard policy from Configuration Manager, the Exploit Guard settings will not be removed from the clients if you remove the deployment. Delete not supported is recorded in the Configuration Manager client’s ExploitGuardHandler.log if you remove the client’s Exploit Guard deployment. The following PowerShell script can be run under SYSTEM context to remove these settings:


$defenderObject = Get-WmiObject -Namespace "root/cimv2/mdm/dmmap" -Class "MDM_Policy_Config01_Defender02" -Filter "InstanceID='Defender' and ParentID='./Vendor/MSFT/Policy/Config'"
$defenderObject.AttackSurfaceReductionRules = $null
$defenderObject.AttackSurfaceReductionOnlyExclusions = $null
$defenderObject.EnableControlledFolderAccess = $null
$defenderObject.ControlledFolderAccessAllowedApplications = $null
$defenderObject.ControlledFolderAccessProtectedFolders = $null
$defenderObject.EnableNetworkProtection = $null

$exploitGuardObject = Get-WmiObject -Namespace "root/cimv2/mdm/dmmap" -Class "MDM_Policy_Config01_ExploitGuard02" -Filter "InstanceID='ExploitGuard' and ParentID='./Vendor/MSFT/Policy/Config'"
$exploitGuardObject.ExploitProtectionSettings = $null

Source : Official Microsoft Brand
Editor by : BEST Antivirus KBS Team

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

(Visited 7 times, 1 visits today)