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

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

  1. SM03

    SM03 MDL Expert

    Dec 16, 2012
    1,522
    634
    60
    you mean WUMT?
     
  2. SM03

    SM03 MDL Expert

    Dec 16, 2012
    1,522
    634
    60
  3. boe323

    boe323 MDL Expert

    Jul 19, 2011
    1,778
    540
    60
  4. TairikuOkami

    TairikuOkami MDL Expert

    Mar 15, 2014
    1,253
    1,150
    60
    You have merely removed Windows Security GUI, pretty pointless since it has nothing to do with Defender, just MS loves to splat Defender name on everything, like Defender Firewall, though it is a standalone app.
     
  5. SM03

    SM03 MDL Expert

    Dec 16, 2012
    1,522
    634
    60
    If I am 'merely ' removing this WS/Defender, then do you have any suggested way to remove the WS/Defender completely,
    so that there'll be absolutely no 'Update for Microsoft Defender Antivirus antimalware platform - KB5007651' to block/hide?
     
  6. Jingzin

    Jingzin MDL Addicted

    Nov 10, 2021
    665
    532
    30
    cbsenum and remove defender packages. At least thats what i do.
     
  7. raptorddd

    raptorddd MDL Addicted

    Aug 17, 2019
    729
    275
    30
    this this.. it removes everything
     

    Attached Files:

  8. SM03

    SM03 MDL Expert

    Dec 16, 2012
    1,522
    634
    60
    #229 SM03, Jun 3, 2024
    Last edited: Jun 3, 2024
    I don't understand, can you explain & elaborate a bit?

    I am actually looking to remove WD/WS from the WIM (ISO) level completely so that I don't even receive that 'Update for Microsoft Defender Antivirus antimalware platform - KB5007651' via Windows Update.

    Although I am aware of various WD/WS removal scripts & apps existence like what you shared, using those will be the last option if nothing works.

    But I don't think anything will work, as per my experience my WIM (ISO) is WD/WS less, but as soon as Windows receive the monthly LCU, some component of WD/WS is installed via LCU I guess,

    & immediately after receiving & installing that LCU, Windows start receiving that 'Update for Microsoft Defender Antivirus antimalware platform - KB5007651' again via Windows Update
     
  9. °ツ

    °ツ MDL Addicted

    Jun 8, 2014
    900
    1,176
    30
    This does not work?

    Code:
    reg load HKLM\OFFLINE_IMAGE_SOFTWARE mount\Windows\System32\Config\Software
    reg add "HKLM\OFFLINE_IMAGE_SOFTWARE\Policies\Microsoft\MRT" /v "DontOfferThroughWUAU" /t REG_DWORD /d "1" /f
    reg add "HKLM\OFFLINE_IMAGE_SOFTWARE\Policies\Microsoft\MRT" /v "DontReportInfectionInformation" /t REG_DWORD /d "1" /f
    reg add "HKLM\OFFLINE_IMAGE_SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "ForceUpdateFromMU" /t REG_DWORD /d "0" /f
    reg add "HKLM\OFFLINE_IMAGE_SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "UpdateOnStartUp" /t REG_DWORD /d "0" /f
    reg unload HKLM\OFFLINE_IMAGE_SOFTWARE
     
  10. SM03

    SM03 MDL Expert

    Dec 16, 2012
    1,522
    634
    60
    Need to test this. what's the process you follow to integrate this into the WIM?

    BTW, have you already tried & tested this on your own?
    i.e. adding this to Windows ISO [.WIM] & install that ISO & 'Update for Microsoft Defender Antivirus antimalware platform - KB5007651' not offered
     
  11. °ツ

    °ツ MDL Addicted

    Jun 8, 2014
    900
    1,176
    30
    Just replace "mount\Windows\System32\Config\Software" with the location of the Software hive file where the WIM is mounted and run the commands in CMD.
    I haven't tested it lately because I used it when reconstructing Enteprise G and if I remember correctly Defender Updates were really disabled then.

    Why not just do offline update, block Windows Update in firewall and just install updates manually.
    That way you have more control what is installed. That's what I do.
     
  12. SM03

    SM03 MDL Expert

    Dec 16, 2012
    1,522
    634
    60
    #233 SM03, Jun 3, 2024
    Last edited: Jun 3, 2024
    UPDATE: Tried this script you shared.
    Executed this script 2 times, Open & Run as admin. Followed by a reboot.
    that Update for Microsoft Defender Antivirus antimalware platform - KB5007651' still shows in Windows Update.

    I don't get your process fully. Can you explain further?
    What if I add this reg key (you shared) into the HKLM and/or HKCU hive to executive it after the first Windows boot after a clean install?

    To answer your other Q, am not interested in offline update procedures. It's just this KB5007651 which I don't want & wanna block permanently.
     
  13. °ツ

    °ツ MDL Addicted

    Jun 8, 2014
    900
    1,176
    30
    For example:
    Code:
    reg load HKLM\OFFLINE_IMAGE_SOFTWARE C:\mount\Windows\System32\Config\Software
    reg add "HKLM\OFFLINE_IMAGE_SOFTWARE\Policies\Microsoft\MRT" /v "DontOfferThroughWUAU" /t REG_DWORD /d "1" /f
    reg add "HKLM\OFFLINE_IMAGE_SOFTWARE\Policies\Microsoft\MRT" /v "DontReportInfectionInformation" /t REG_DWORD /d "1" /f
    reg add "HKLM\OFFLINE_IMAGE_SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "ForceUpdateFromMU" /t REG_DWORD /d "0" /f
    reg add "HKLM\OFFLINE_IMAGE_SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "UpdateOnStartUp" /t REG_DWORD /d "0" /f
    reg unload HKLM\OFFLINE_IMAGE_SOFTWARE
    
    If you mounted the WIM to C:\mount. Add that to a batch file and run it.

    You can do it online too.
    Code:
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\
     
  14. Jingzin

    Jingzin MDL Addicted

    Nov 10, 2021
    665
    532
    30
  15. SM03

    SM03 MDL Expert

    Dec 16, 2012
    1,522
    634
    60
    I tested this on my host OS/live system (23H2 22631.3672). As I already removed WD/WS from the WIM level so those reg keys were not there in the reg editor I checked.
    So I manually added
    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates]
    "UpdateOnStartUp"=dword:00000000
    "ForceUpdateFromMU"=dword:00000000
    & rebooted the system. Now that update is still showing.
    1.png

    I am attaching the full Reg key exported for those 'Windows Defender Security Center' & 'Windows Defender' if you wanna check.

    I believe those are not the keys to blocking this KB5007651, maybe some other reg keys are involved.
     

    Attached Files:

  16. Jingzin

    Jingzin MDL Addicted

    Nov 10, 2021
    665
    532
    30
    #240 Jingzin, Jun 5, 2024
    Last edited: Jun 5, 2024