Open Calinou opened 4 years ago
Sorry I was blind side by that message I did not see it sorry about thanks for the response
Haven't tried, but here: https://github.com/Crocodile1337/AV-Disabler
Haven't tried, but here: https://github.com/Crocodile1337/AV-Disabler
Not there :(
So, I have a personal method to disable the Defender using regedit and it works even without rebooting. It works on Windows 10, Windows 11 23H2, 22H2, Windows Insider Beta. So firstly, if you dont want to have any problems with permissions, download any tool that allows to launch applications with TrustedInstaller permissions. What I use is Winaero tweaker, search for tweak called "run as trustedinstaller" and then type regedit and launch. But first disable all settings in windows defender settings like tampering protection etc everything.
Also remember, when you create something click on dword 32bit
The method and steps:
go to:
STEPS IF IT DIDN'T WORK AND ANTIMALWARE SERVICE IS STILL RUNNING: Make sure to repeat the steps above again and see if it works.
backup plan: Go into safe mode with internet access and disable windows defender antivirus services If you can't, you can also try with powershell: Set-Service -Name "SERVICE-NAME" -Status stopped -StartupType disabled (e.g. BITS/bits) or if that didnt work sc config "SERVICE-NAME" start=disabled
backup plan #2: Go into safe mode and just do the steps at the beginning.
@Calinou
I am pretty busy these days (and don't use Windows actively), so I can't test this extensively to make sure it works as expected. It looks good on the surface but I'm worried about the high number of steps it requires (plus the TrustedInstaller privileges).
Thanks for doing this research effort still :slightly_smiling_face:
Alright! Btw here's a simplified version (all steps still present, just so you can faster understand this) Important: Disable tampering protection, real-time protection, and everything else in the Windows Security settings (dont touch other settings like firewall or vbs, etc) before proceeding.
Launch regedit with TrustedInstaller privileges using e.g. Winaero Tweaker, AdvancedRun, or look into some cmd/pwsh command. Because otherwise it would throw errors when writing to the registry values, because you have no permissions, even as an Administrator. Also, it will throw write errors even with TrustedInstaller permissions if real-time protection and other settings aren't disabled.
_HKEY_LOCALMACHINE\SOFTWARE\Microsoft\Windows Defender | DisableAntiSpyware (1), DisableAntiVirus (1)
_HKEY_LOCALMACHINE\SOFTWARE\Microsoft\Windows Defender\Real-Time Protection | DisableRealtimeMonitoring (1), DpaDisabled (1)
_HKEY_LOCALMACHINE\SOFTWARE\Policies\Microsoft\Windows Defender | DisableAntiSpyware (1), DisableRealtimeMonitoring (1), DisableAntiVirus (1)
_HKEY_LOCALMACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection | DisableBehaviorMonitoring (1), DisableOnAccessProtection (1), DisableRealtimeMonitoring (1), DisableScanOnRealtimeEnable (1)
_HKEY_LOCALMACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet | SpyNetReporting (0) Optional: Open taskschd.msc, Task Scheduler Library => Microsoft => Windows => Windows Defender, and disable everything. Note: 2. step may reset after a big windows update and you may have to redo it again, but after that it surely disables completely (even the AntiMalwareService executable, and in services, the defender service is stopped and startup type is Manual)
Update: Works in Windows Insiders Beta build, and on the 23H2 version. Works as expected! Update 2: Works in Windows Insiders Release Preview build 24H2.
Alternatives are welcome. Feel free to post if you have any ideas :slightly_smiling_face: