How to Enable or Disable Scan Network Files with Windows Defender

Enable or Disable Scan Network Files with Windows Defender Antivirus in PowerShell

  1. Open an elevated PowerShell.
  2. Copy and paste the command below you want to use into PowerShell, and press Enter.

[infobox][/infobox]

[infobox](Enable) [/infobox]

[infobox]Set-MpPreference -DisableScanningNetworkFiles 0 [/infobox]

[infobox]OR [/infobox]

[infobox](Disable) [/infobox]

[infobox]Set-MpPreference -DisableScanningNetworkFiles 1 [/infobox]

[infobox][/infobox]


3. When finished, you can close PowerShell if you like.


Enable or Disable Scan Network Files with Windows Defender Antivirus in Group Policy

  1. Open the Local Group Policy Editor.
  2. Navigate to the location below in the left pane of Local Group Policy Editor.

[infobox][/infobox]

[infobox]Computer Configuration/Administrative Templates/Windows Components/Windows Defender Antivirus/Scan [/infobox]

[infobox]OR [/infobox]

[infobox](Windows 10 version 2004 and higher) [/infobox]

[infobox]Computer Configuration/Administrative Templates/Windows Components/Microsoft Defender Antivirus/Scan [/infobox]

[infobox][/infobox]


3. In the right pane of Scan in Local Group Policy Editor, double click/tap on the Scan network files policy to edit it.

4. Do step 5 (enable) or step 6 (disable) below for what you would like to do.

5. To Enable Scan Network Files with Windows Defender Antivirus

  • A) Select (dot) Enabled, click/tap on OK, and go to step 7 below.

6. To Disable Scan Network Files with Windows Defender Antivirus

  • A) Select (dot) Not Configured or Disabled, click/tap on OK, and go to step 7 below.

7. When finished, you can close the Local Group Policy Editor if you like.