How to enable network file scanning with Microsoft Defender Antivirus on Windows 10

Microsoft Defender enable network file scan
Microsoft Defender enable network file scan (Image credit: Windows Central)

On Windows 10, Microsoft Defender Antivirus comes built into the Windows Security experience, and it offers real-time protection from viruses, ransomware, spyware, and other malware and hacker attacks.

In addition to scanning local files, the security feature also allows you to enable an option to scan network files. The option used to be enabled out of the box on Windows 10, but it's no longer the case with the latest version of the antivirus.

Usually, it's not recommended to enable this feature. However, there are still some situations when you may need to use it, for instance, when the antivirus isn't able to scan certain files, or you receive a specific error that will only be resolved by enabling scan for network files.

In this Windows 10 guide, we'll walk you through the steps to enable scan network files on Microsoft Defender Antivirus.

Related: Best Antivirus Software 2020

How to enable Microsoft Defender scan network files with Group Policy

If you're running Windows 10 Pro (or Enterprise), the easiest way to enable scan network files is using the Local Group Policy Editor.

To scan network files with Microsoft Defender Antivirus, use these steps:

  1. Open Start.
  2. Search for gpedit and click the top result to open the Group Policy Editor.
  3. Browse the following path:Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus > Scan
  4. Double-click the Scan network files policy on the right side.

Microsoft Antivirus Scan Policies

Source: Windows Central (Image credit: Source: Windows Central)
  1. Check the Enabled option.

Source: Windows Central (Image credit: Source: Windows Central)
  1. Click the Apply button.
  2. Click the OK button.

Once you complete the steps, network files will be scanned during automatic and manual scans.

If you want to revert the changes, you can use the same instructions, but on step No. 5, make sure to select the Not configured option.

How to enable Microsoft Defender scan network files with PowerShell

To allow Microsoft Defender to network files with PowerShell, use these steps:

  1. Open Start.
  2. Search for PowerShell, right-click the top result, and click the Run as administrator option.
  3. Type the following command to enable scan network files and press Enter:Set-MpPreference -DisableScanningNetworkFiles 0

Source: Windows Central (Image credit: Source: Windows Central)
  1. (Optional) Type the following command to disable scan network files and press Enter:Set-MpPreference -DisableScanningNetworkFiles 1

After you complete the steps, Microsoft Defender Antivirus will be able to scan network files. You can check this guide to learn more about the different ways to manage the antivirus using PowerShell commands.

How to enable Microsoft Defender scan network files with Registry

Alternatively, it's also possible to enable network file scan option using the Registry.

To allow the Windows 10 default antivirus to scan network files modifying the Registry, use these steps:

Warning: This is a friendly reminder that editing the Registry is risky and can cause irreversible damage to your installation if you don't do it correctly. It's recommended to make a full backup of your PC before proceeding.

  1. Open Start.
  2. Search for regedit and click the top result to open the Registry.
  3. Browse the following path:HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows DefenderQuick tip: On Windows 10, you can now copy and paste the path in the Registry's address bar to quickly jump to the key destination.
  4. Right-click the Windows Defender (folder) key, select New, and click on Key.

Source: Windows Central (Image credit: Source: Windows Central)
  1. Name the key Scan and press Enter.
  2. Right-click the newly created key, select New, and click on DWORD (32-bit) Value.

Source: Windows Central (Image credit: Source: Windows Central)
  1. Name the key DisableScanningNetworkFiles and press Enter.
  2. Double-click the newly created DWORD and make sure the value is 0.

Microsoft Defender enable network scan

Source: Windows Central (Image credit: Source: Windows Central)
  1. Click the OK button.
  2. Restart your computer.

Once you complete the steps, during the next scan, network files will be checked for malware.

In the case that you want to undo the changes, you can use the same instructions, but on step No. 4, make sure to right-click the Scan key and select the Delete option.

Mauro Huculak

Mauro Huculak is technical writer for WindowsCentral.com. His primary focus is to write comprehensive how-tos to help users get the most out of Windows 10 and its many related technologies. He has an IT background with professional certifications from Microsoft, Cisco, and CompTIA, and he's a recognized member of the Microsoft MVP community.