I disabled windows defender realtime protection but its still scanning.


Zarxrax

New member
Local time
7:39 PM
Posts
4
OS
Windows 11
I recently upgraded from windows 10 to windows 11 with a clean install, and that's when I started noticing a problem.

I am doing development with python/pytorch, and some files I was working on were taking minutes to launch in windows 11, where they would start in seconds under windows 10. I narrowed the issue down to importing the pytorch library, and I noticed task manager shows quite a bit of activity from "Antimalware Service Executable - Microsoft Defender Antivirus Service".

So it seemed like I had found the problem, Defender was scanning the files in the library (it contains multiple gigabytes of dll files related to nvidia graphics) and that was slowing it down. So I did the sensible thing and added an exclusion for the folder. But, that didn't seem to stop it. Then I turned off the tamper protection setting, and the realtime protection setting. It still continued to scan when I import the library. I went as far as disabling realtime protection through the group policy editor, but still, nothing!

Just to confirm that I wasn't mistaken, I used Sysinternals Process Monitor to monitor MsMpEng.exe. As soon as I import the pytorch library, I can see it scanning these huge dll files that are contained within the folder that I excluded.

Is there anything else that I can try? I don't understand why it wont respect my decision to not keep scanning these files! I can't get anything done if I am waiting 1-2 minutes on it to scan every time!
 
Windows Build/Version
24H2 / Build 26100.3775

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
Welcome to the forum. Your troubleshooting attemtpts are very thourough. But have you tried OPTION 2 regedit method in this tutorial.

My opinion is that this method should disable Defender in your current intallation, but when the system upgrades to a later vesion of windows that the regedit t would have to be done again.I just don't see your choice would carry over into a newer version of windows. I could be wrong about that, though.
Maybe @Brink can verify that.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.3775
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 nvme+256gb SKHynix m.2 nvme /External drives 512gb Samsung m.2 sata+1tb Kingston m2.nvme+ 4gb Solidigm nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    #1 Edge #2 Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
Let me also note, unless you install a 3rd party AV solution, Windows may squawk with notifications that you are unprotected.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.3775
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 nvme+256gb SKHynix m.2 nvme /External drives 512gb Samsung m.2 sata+1tb Kingston m2.nvme+ 4gb Solidigm nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    #1 Edge #2 Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Microsoft Surface Pro
    Memory
    32GB
  • Operating System
    Windows 11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkPad P14s Gen 3 Intel (14”) Mobile Workstation - Type 21AK
    Memory
    32GB
Welcome to the forum. Your troubleshooting attemtpts are very thourough. But have you tried OPTION 2 regedit method in this tutorial.

My opinion is that this method should disable Defender in your current intallation, but when the system upgrades to a later vesion of windows that the regedit t would have to be done again.I just don't see your choice would carry over into a newer version of windows. I could be wrong about that, though.
Maybe @Brink can verify that.
I gave the regedit method a try and rebooted. Unfortunately, it continues to scan the files, and for some reason it was running MASSIVELY slower. I reverted the change, and it went back to the normal slow.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
I'm thinking it is not Defender but may be Smart App Control that is the culprit. But if smart app control is disabled, it can not be enabled without doing a clean install or restoring an image made before it was disabled. I have mine turned off.
smart app control.webp
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.3775
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 nvme+256gb SKHynix m.2 nvme /External drives 512gb Samsung m.2 sata+1tb Kingston m2.nvme+ 4gb Solidigm nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    #1 Edge #2 Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
I'm thinking it is not Defender but may be Smart App Control that is the culprit. But if smart app control is disabled, it can not be enabled without doing a clean install or restoring an image made before it was disabled. I have mine turned off.
Hmmm, mine is set to evaluation mode. I will research this some more to see if I want to turn it off. It seems kind of ridiculous that you can't just turn it back on once you turn it off.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
I'm thinking it is not Defender but may be Smart App Control that is the culprit. But if smart app control is disabled, it can not be enabled without doing a clean install or restoring an image made before it was disabled. I have mine turned off.

The smart app control was the culprit! After disabling it, its back to running at normal speed again. Thanks!
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
Brainstorming more here, so I'm just throwing out ideas for you to consider....some may be ridiculous.
Since those files are so large, could the issue be related to indexing? You might try excluding those large folders from being indexed..
You can check your search indexing status in realtime. Check Search Indexing Status in Windows 11
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.3775
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 nvme+256gb SKHynix m.2 nvme /External drives 512gb Samsung m.2 sata+1tb Kingston m2.nvme+ 4gb Solidigm nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    #1 Edge #2 Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
Great. Ignore my last post. I wrote it before I read that you had fixed
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.3775
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 nvme+256gb SKHynix m.2 nvme /External drives 512gb Samsung m.2 sata+1tb Kingston m2.nvme+ 4gb Solidigm nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    #1 Edge #2 Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium

Latest Support Threads

Back
Top Bottom