Windows Security Error - Network Scanning


mccmw

Well-known member
Member
VIP
Local time
6:08 AM
Posts
520
OS
Windows 11
Same settings on both my desktop and laptop, to include disabling network scanning. However, my laptop just started giving me the "The Windows Defender Antivirus can skipped an item due to exclusion or network scanning settings" error...after finding no threats. I know this issue came up years ago and Microsoft actually provided a fix. Desktop is not giving the error. If I enable network scanning on the laptop the error goes away...but I don't want that for resource reasons. I'm on 24H2 build 2454 but don't think that is the issue. I've tried repair and reset of Windows Security but that didn't work. Is there another setting, in Windows Security, or registry that will restore my ability to have network scan off and not get the error...just live with the error?
 

My Computers My Computers

  • At a glance

    Windows 11Intel i7-7700K32GB 2666Mhz (Kingston Hyper X Fury)Powercolor RX6600XT
    OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Intel i7-7700K
    Motherboard
    Asus Prime Z-270A
    Memory
    32GB 2666Mhz (Kingston Hyper X Fury)
    Graphics Card(s)
    Powercolor RX6600XT
    Sound Card
    N/A
    Monitor(s) Displays
    KTC
    Screen Resolution
    2560 x 1440
    Hard Drives
    1TB Western Digital SN770 (System) and 2TB Western Digital SN770 (Storage)
    Antivirus
    Windows Security
  • At a glance

    Windows 11 Homei9-11900H32GBIntegrated Intel and Nvidia 3050Ti
    Operating System
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Dell/XPS 15 9510
    CPU
    i9-11900H
    Motherboard
    Unknown
    Memory
    32GB
    Graphics card(s)
    Integrated Intel and Nvidia 3050Ti
    Sound Card
    Integrated (Realtek)
    Monitor(s) Displays
    None
    Screen Resolution
    1920 x 1200 (non-Touch)
    Hard Drives
    2TB SK Hynix P41 Platinum
    Antivirus
    Windows Security
Actually...it now looks like my desktop is the anomaly. My wife's laptop had the message too. I'll leave network scanning on.
 

My Computers My Computers

  • At a glance

    Windows 11Intel i7-7700K32GB 2666Mhz (Kingston Hyper X Fury)Powercolor RX6600XT
    OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Intel i7-7700K
    Motherboard
    Asus Prime Z-270A
    Memory
    32GB 2666Mhz (Kingston Hyper X Fury)
    Graphics Card(s)
    Powercolor RX6600XT
    Sound Card
    N/A
    Monitor(s) Displays
    KTC
    Screen Resolution
    2560 x 1440
    Hard Drives
    1TB Western Digital SN770 (System) and 2TB Western Digital SN770 (Storage)
    Antivirus
    Windows Security
  • At a glance

    Windows 11 Homei9-11900H32GBIntegrated Intel and Nvidia 3050Ti
    Operating System
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Dell/XPS 15 9510
    CPU
    i9-11900H
    Motherboard
    Unknown
    Memory
    32GB
    Graphics card(s)
    Integrated Intel and Nvidia 3050Ti
    Sound Card
    Integrated (Realtek)
    Monitor(s) Displays
    None
    Screen Resolution
    1920 x 1200 (non-Touch)
    Hard Drives
    2TB SK Hynix P41 Platinum
    Antivirus
    Windows Security
Try the batch script i have posted, it works for Windows 10 should also work with Windows 11.

Code:
:: Enable or Disable Scan Mapped Network Drives with Windows Defender in Windows 10


@Echo Off

Cls & Color 0E



(Net session >nul 2>&1)||(PowerShell start """%~0""" -verb RunAs & Exit /B)



:_CHOICE

Cls & Mode CON  LINES=11 COLS=70 & Color 0E & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo        1 - Enable Scan Mapped Network Drives during Full Scan   
Echo.       
Echo        2 - Disable Scan Mapped Network Drives during Full Scan
Echo.


Set /p input=:^>

If Not %input%==1 (Goto :_Ex) Else (Goto :_Enable)

:_Ex
If Not %input%==2  (Goto :_CHOICE) Else (Goto :_Disable)



:_Enable

Powershell Set-MpPreference -DisableScanningMappedNetworkDrivesForFullScan 0

Cls & Mode CON  LINES=11 COLS=70 & Color 0E & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo.
Echo          Scanning Mapped Network Drives during Full Scan Enabled   
Echo.
Echo.
Echo.
Ping -n 5 localhost >Nul
Goto Reboot



:_Disable


Powershell Set-MpPreference -DisableScanningMappedNetworkDrivesForFullScan 1

Cls & Mode CON  LINES=11 COLS=70 & Color 0E & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo.
Echo          Scanning Mapped Network Drives during Full Scan Disabled
Echo.
Echo.
Echo.
Ping -n 5 localhost >Nul


:Reboot

Cls
Echo.
Echo.
Echo.

CHOICE /C YN /M "Press Y to Reboot, N for exiting script."


If %errorlevel% == 1 ( Shutdown /r /t 0) Else (Exit)
 

My Computer My Computer

At a glance

Windows 11AMD Ryzen 7 5700GMicron Technology DDR4-3200 16GBNVIDIA GeForce RTX 3060
OS
Windows 11
Computer type
PC/Desktop
Manufacturer/Model
HP Pavilion
CPU
AMD Ryzen 7 5700G
Motherboard
Erica6
Memory
Micron Technology DDR4-3200 16GB
Graphics Card(s)
NVIDIA GeForce RTX 3060
Sound Card
Realtek ALC671
Monitor(s) Displays
Samsung SyncMaster U28E590
Screen Resolution
3840 x 2160
Hard Drives
SAMSUNG MZVLQ1T0HALB-000H1
Back
Top Bottom