[DISCUSSION] Disabling Microsoft Defender Antivirus (formerly Windows Defender)

Discussion in 'Windows 11' started by Espionage724, Oct 29, 2021.

  1. TairikuOkami

    TairikuOkami MDL Expert

    Mar 15, 2014
    1,253
    1,151
    60
    Code:
    rem Disable systray icon
    reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run" /v "SecurityHealth" /f
    reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v "SecurityHealth" /f
    
    rem 1 - Antivirus Disabled Notification
    reg add "HKLM\Software\Microsoft\Windows Defender Security Center\Notifications" /v "DisableNotifications" /t REG_DWORD /d "1" /f
    reg add "HKLM\Software\Policies\Microsoft\Windows Defender Security Center\Notifications" /v "DisableEnhancedNotifications " /t REG_DWORD /d "1" /f
    
    rem 0 - Security and Maitenance Notification
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.SecurityAndMaintenance" /v "Enabled" /t REG_DWORD /d "0" /f
    
     
  2. BetaTesta

    BetaTesta MDL Senior Member

    Aug 6, 2022
    276
    83
    10
    In case I wanted to revert it to defaults what lines are needed? Could you write them please?
     
  3. raptorddd

    raptorddd MDL Addicted

    Aug 17, 2019
    730
    276
    30
    di you all just disable it and run with no av.?
     
  4. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,154
    5,961
    150
    no have any A\V. waste of time.
    I use other security products. like COMODO.
    I keep HIPS only. the rest. ... don't care.
    about `sandbox` ... i consider to keep it too.

    on my second laptop,
    I don't any Security software
    use it only to surf FB .. & other sites
    or to write stuff.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,922
    150
    #205 acer-5100, May 14, 2024
    Last edited: May 14, 2024

    Defender is not an AV, is a tool to spot patches, keygens and other treats for MS business
     
  6. BetaTesta

    BetaTesta MDL Senior Member

    Aug 6, 2022
    276
    83
    10
    No more or no less.
     
  7. raptorddd

    raptorddd MDL Addicted

    Aug 17, 2019
    730
    276
    30
    got it. i rarely make online purchases that would be my main concern.
     
  8. Stimpy88

    Stimpy88 MDL Senior Member

    Mar 24, 2011
    378
    213
    10
  9. catosis

    catosis MDL Junior Member

    Apr 24, 2022
    87
    23
    0
    How can I disable Windows Defender in Windows unattended installation? So that Windows installed from that setup will have Defender disabled.

    Many thanks
     
  10. Atari800XL

    Atari800XL MDL Expert

    Apr 3, 2011
    1,002
    1,742
    60
    Easy way: Use WinNTSetup by "JFX", select the "Defender off" tweak.
    Or do these settings yourself if you do the apply phase yourself with DISM, etc.
     
  11. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,154
    5,961
    150
    you can run script as specialize stage to disable its services
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. Atari800XL

    Atari800XL MDL Expert

    Apr 3, 2011
    1,002
    1,742
    60
    This is what I use (I've edited some entries out, I believe these are all that are needed for Defender):

    Use this after apply on the "offline" registry, before rebooting to start setup. I'm just posting this here to check if somebody has anything to add :)

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\temp\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\MpCmdRun.exe]
    "Debugger"="NUL"
    
    [HKEY_LOCAL_MACHINE\temp\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\MsMpEng.exe]
    "Debugger"="NUL"
    
    [HKEY_LOCAL_MACHINE\temp\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\smartscreen.exe]
    "Debugger"="NUL"
    
    [HKEY_LOCAL_MACHINE\temp\Microsoft\Windows\CurrentVersion\Run]
    "SecurityHealth"=-
    
    [HKEY_LOCAL_MACHINE\temp\Microsoft\Windows Defender]
    "DisableAntiSpyware"=dword:00000001
    "DisableAntiVirus"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\temp\Microsoft\Windows Defender\Features]
    "TamperProtection"=dword:00000000
    
    [HKEY_LOCAL_MACHINE\temp\Microsoft\Windows Defender\Real-Time Protection]
    "DisableAntiSpywareRealtimeProtection"=dword:00000001
    "DisableBehaviorMonitoring"=dword:00000001
    "DisableOnAccessProtection"=dword:00000001
    "DisableRealtimeMonitoring"=dword:00000001
    "DisableScanOnRealtimeEnable"=dword:00000001
    "DpaDisabled"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\temp\Microsoft\Windows\System]
    "EnableSmartScreen"=dword:00000000
    
    [HKEY_LOCAL_MACHINE\temp\Policies\Microsoft\Windows Defender]
    "DisableAntiSpyware"=dword:00000001
    "DisableAntiVirus"=dword:00000001
    "DisableRealtimeMonitoring"=dword:00000001
    "DisableRoutinelyTakingAction"=dword:00000001
    "DisableSpecialRunningModes"=dword:00000001
    "ServiceKeepAlive"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\temp\Policies\Microsoft\Windows Defender\Signature Updates]
    "ForceUpdateFromMU"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\temp\Policies\Microsoft\Windows Defender\SmartScreen]
    "ConfigureAppInstallControlEnabled"=dword:00000001
    "ConfigureAppInstallControl"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\temp\Policies\Microsoft\Windows Defender\Spynet]
    "DisableBlockAtFirstSeen"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\temp\Microsoft\Windows\CurrentVersion\ReserveManager]
    "ShippedWithReserves"=dword:00000000
    

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\temp\ControlSet001\Services\MDCoreSvc]
    "Start"=dword:00000004
    
    [HKEY_LOCAL_MACHINE\temp\ControlSet001\Services\SecurityHealthService]
    "Start"=dword:00000000
    
    [HKEY_LOCAL_MACHINE\temp\ControlSet001\Services\WdFilter]
    "Start"=dword:00000004
    
    [HKEY_LOCAL_MACHINE\temp\ControlSet001\Services\WdNisDrv]
    "Start"=dword:00000004
    
    [HKEY_LOCAL_MACHINE\temp\ControlSet001\Services\WdNisSvc]
    "Start"=dword:00000004
    
    [HKEY_LOCAL_MACHINE\temp\ControlSet001\Services\WinDefend]
    "Start"=dword:00000004
    
    
     
  13. haris_mdlf69

    haris_mdlf69 MDL Addicted

    Oct 23, 2018
    571
    940
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. SM03

    SM03 MDL Expert

    Dec 16, 2012
    1,522
    634
    60
    #214 SM03, May 30, 2024
    Last edited: May 31, 2024
    My Windows Host is defenderless, but still receiving such updates occasionally

    Is there any way to block/stop receiving this 'Update for Windows Security platform antimalware platform'?
    completely via any reg tweak or GP or anything else?

    1.png
     
  15. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,349
    2,521
    120
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. TairikuOkami

    TairikuOkami MDL Expert

    Mar 15, 2014
    1,253
    1,151
    60
    Windows Security is not Windows Defender. Disabling it can cause infinitive BSOD.
     

    Attached Files:

  17. SM03

    SM03 MDL Expert

    Dec 16, 2012
    1,522
    634
    60
    #219 SM03, May 31, 2024
    Last edited: May 31, 2024
    Windows Security is formerly known as Defender, Windows Security is just a modified version of defender

    & like I said, Windows Defender/security is removed from my OS & I've been using Windows (10 & 11) like this since Win10 days, & never encountered any BSOD for this reason in the last 5/6 years

    1.png
     
  18. boe323

    boe323 MDL Expert

    Jul 19, 2011
    1,778
    540
    60
    you need to block it with show hide tool, wu will keep trying to install the default version number when it see's it missing from your pc
    and if you've removed all folders and files related to security health/defender, it probably will never install