- I found out that this topic is more complex than I first thought. It's hard to find up-to-date information on the Internet and pros/cons of each method.
- Solutions will be ranked from best to worst, in my opinion.
- TL;DR: disable Tamper Protection with Windows Security, don't disable RTP with Windows Security, instead use Method 1 or 2.
- No matter which approach you choose (except the Windows Security one, which is by far the worst since your setting won't stick), you have to disable Tamper Protection from the Windows Security UI:
Windows Security → Virus and threat protection → Virus and threat protection settings → Tamper Protection → off
. - If you don't do that, Windows will block any third-party change, including ones from official components such as CMD or PowerShell.
- Tamper Protection has to be disable from settings, it can't be disabled from anywhere else. The change simply won't stick.
- Benefits:
- No more CPU usage and disk usage from "Antimalware Service Executable". RAM usage seems to be signifantly lower.
- Improves privacy.
- Drawbacks:
- Obviously, disabling RTP will decrease security; therefore, it's highly recommended to use a firewall in whitelist mode (simplewall is a great tool for that) as well as scanning your system regularly, especially files from the internet.
- It also involves to disable Tamper protection.
- How-to:
- Disable RTP:
Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus > Real-time protection → Turn off real-time protection (enabled)
- Reenable RTP without restarting: disable the same policy and then, type in cmd
gpupdate /force
- Disable RTP:
- Pros:
- Native feature
- Easy to turns on and off
- Should survive Windows Updates
- Cons
- Doesn't work with Home edition of Windows (without any hack)
- Not very convenient to turn on and off
Method 2: Task Scheduler - Microsoft Defender Real-Time Protection stop (recommended)
- How-to: see instructions
- Pros:
- Only uses official Windows features and components (i.e. Task Scheduler and PowerShell).
- Works natively on Windows Home edition
- Extremely easy to turn on and off
- Should survive Windows Updates
- Cons
- RTP can potentially work for a few seconds a day
- Pros
- You can keep Tamper Protection enabled
- Cons
- Your change won't stick after a certain period of time (the triggers are not documented by Microsoft) or after a reboot
- Cons
- It sometimes becomes outdated after updates
- It could lead to instabilities
- Cons
- It sometimes becomes outdated after updates (or at least gets disabled)
- You usually don't know what the program is actually doing
- It can conflict with Windows native features and lead to instabilities
- Lots of tools completely break Microsoft Defender and it becomes hard to recover it