pgkt04 / defender-control

An open-source windows defender manager. Now you can disable windows defender permanently.
MIT License
1.4k stars 120 forks source link

Windows 11: Windows Defender & Smartscreen re-activate after reboot #27

Closed Xaymar closed 1 year ago

Xaymar commented 1 year ago

See title for the problem. All the changes are reverted upon reboot, and all Group Policy changes made to Windows Defender are also reverted. Seems like Microsoft hates this one weird trick to get 50% of our CPU back and +200% battery lifetime...

image

pgkt04 commented 1 year ago

This might be due to changes from windows updates, will have a look in from my w11 machine when I get the chance to. Thanks for letting me know

Xaymar commented 1 year ago

For now I just excluded all my drives entirely from any scanning, which works for now. Not as good as no Windows Defender, but better than nothing.

Xaymar commented 1 year ago

✅ Still present ❌ Gone

Unsure how to check WMIC related changes. Seems like a TamperProtection of 0 is invalid on Windows 11, so it resets things related to it.

Edit: Found a way to make it stick after reboot/hibernate:

  1. Manually set TamperProtection to 0 using AdvancedRun from Nirsoft while MsMpEng is suspended.
  2. Reboot.
  3. Run this tool with the same AdvancedRun from Nirsoft.
  4. Reboot.
  5. Success-ish. Software that for no reason hooks into the Microsoft Defender engine, like Firefox, will still encounter a stutter.
Xaymar commented 1 year ago

Seems like Microsoft is finally done moving things around for now. The tool works again as expected, but there's now a 2nd on-access check for applications, which defaults to on. Turning it off as well appears to prevent this from occuring entirely.