Microsoft Defender is the built-in antivirus comes with Windows 10. It can help you to protect against malware, viruses and other security threats. These threats are harmful for your system and should be dealt carefully. Microsoft Defender can provide the competitive security and helps you to make your system safe and secure. In this article, we will learn how to allow or prevent scan network files with Microsoft Defender.

By default, Microsoft Defender will not scan network files. However, if you wish that Microsoft Defender should scan network files as well, you need to configure a relevant setting for that. You can configure the setting using either of the methods mentioned below.

Allow/Prevent Scan Network Files With Microsoft Defender

NOTE: You need to sign in as administrator to perform methods mentioned below.

Method 1 – Using Windows PowerShell

Open administrative Windows PowerShell.

In the administrative Windows PowerShell, type following command to allow scan of network files with Microsoft Defender:

Set-MpPreference -DisableScanningNetworkFiles 0

Allow Prevent Scan Network Files With Microsoft Defender

If you wish to prevent scan of network files, try this command instead:

Set-MpPreference -DisableScanningNetworkFiles 1

Once the command has been executed successfully, close Windows PowerShell. The settings should be in effect now.

Method 2 – Using Registry

It is highly recommended to create a System Restore point first, before editing registry.
  1. Press W8K + R and type regedit in Run dialog box to open Registry Editor. Click OK.
  2. Go to registry location HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Scan.
  3. In the right pane, create the registry DWORD (REG_DWORD) named DisableScanningNetworkFiles and set it to 0.

Allow Prevent Scan Network Files With Microsoft Defender

To prevent scan of network files with Microsoft Defender, you set the registry DWORD to 1 instead.

Close Registry Editor and restart your system to make changes effective.

For IT Pros: You can deploy this registry setting to multiple machines in your organization using Group Policy, refer this guide. Alternatively, you can configure Scan network files policy setting at Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus > Scan.

That’s it!

Leave a Reply

Your email address will not be published. Required fields are marked *