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

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

  1. alexxf

    alexxf MDL Expert

    Feb 9, 2008
    1,020
    759
    60
    With 22621.2134 here. Only using Defender control. Nothing broken.
     
  2. griferss

    griferss MDL Novice

    Jul 17, 2018
    24
    3
    0
    wow!!!. It works perfect. Well I remember that in previous builds of windows 11 nothing worked, but nothing at all. I could not tell you but this problem comes at least since last year. I opened a post in this forum in May (3 months ago) commenting on the problem and NOTHING worked, I was left touched with the OS with these things I tell you, these applications presented problems:

    - Notepad (was uninstalling).
    - The same clipping tool
    - The microsoft egde browser was very very slow the first time you used it to start a session, if you closed the browser and reopen it again and was fine.
    - The XBOX application to play with gamepass, the games took a long time to start up.

    Now all this goes perfect. It remains to be seen if when updating applications from the microsoft store, these do not give download error or things like that, but apparently everything works correctly to disable windows defender as it did at least a long time. I tell you, I could not tell you the exact time but at least since October-November 2022 to disable Windows Defender in my case the OS was corrupted with all that I put above.

    Best regards!
     
  3. NightPunisher

    NightPunisher MDL Novice

    Nov 18, 2017
    4
    0
    0
    Updates installed Defender but not Windows Security, leaving me unable to manage Defender.
    It's not present in Settings and can't be launched from search, nothing happens.

    Can I fix this without reinstalling the OS?
     
  4. NightPunisher

    NightPunisher MDL Novice

    Nov 18, 2017
    4
    0
    0
    Thanks, unfortunately it seems that is not enough. The app appears in the start menu but it does not launch.
     
  5. retest

    retest MDL Member

    Nov 2, 2010
    116
    63
    10
    can you please let us know how exactly you remove it.
     
  6. RobrPatty

    RobrPatty MDL Expert

    Jul 23, 2009
    1,281
    593
    60
    I use this method works wonderful:
     

    Attached Files:

  7. Atari800XL

    Atari800XL MDL Expert

    Apr 3, 2011
    1,002
    1,743
    60
    @RobrPatty
    The text file mentions BAU's defender script, but doesn't have the link, can you add that link?
    I would like to try the method you mentioned, maybe directly from my Apply scripts (I don't use Windows Setup, but apply from WinPE).
     
  8. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,156
    5,969
    150
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Giacomino1968

    Giacomino1968 MDL Senior Member

    Feb 23, 2023
    252
    127
    10
  10. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    #154 acer-5100, Apr 24, 2024
    Last edited: Apr 24, 2024
    Code:
    @echo off
    cd /d "%~dp0"
    echo removing Windows-Defender...
    CLS
    install_wim_tweak.exe /o /l
    install_wim_tweak.exe /o /c Windows-Defender /r
    install_wim_tweak.exe /o /c Microsoft-Windows-SenseClient-Package /r
    
    install_wim_tweak.exe /h /o /l
    echo Windows-Defender should be uninstalled. Please reboot Windows 10.
    pause
    
    download install_wimtweak.exe and place it next to to the batch.
    No it isn't

    Defender is meant to be removable. In server (one of its many advantages) you can do that from the GUI
     
  11. haris_mdlf69

    haris_mdlf69 MDL Addicted

    Oct 23, 2018
    574
    968
    30
    Hey @acer-5100 ,

    Can it be used during Windows installation in SetupComplete.cmd/specialize.cmd?

    Regards
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150

    You can use the exe offline on a mounted wim.

    Just launch with /? to get the syntax and change the batch accordingly.
     
  13. Atari800XL

    Atari800XL MDL Expert

    Apr 3, 2011
    1,002
    1,743
    60
    Well, it's how I removed it (Defender) for years now. In fact, I found the old thread on this right here on MDL when I google searched to check on Install_wim_tweak syntax:
    https://forums.mydigitallife.net/th...-windows-defender-from-win-10-rs5-1809.78066/
    I will pick up on my 26100 tests again tomorrow, something did seem to have changed in this regard, but it could also be it doesn't like me deleting winre.wim from install.wim anymore.
     
  14. Atari800XL

    Atari800XL MDL Expert

    Apr 3, 2011
    1,002
    1,743
    60
    Got up a little earlier to test the batch from post #401 (and only that one Defender removal setting this time). I don't think it works anymore, will have to re-run the test again when I get home.
     
  15. retest

    retest MDL Member

    Nov 2, 2010
    116
    63
    10
    where can i get install_wim_tweak.exe .

    please post sha1 too, thanks.

    ----

    I uninstalled edge from install.wim using this. Worked well.
     
  16. JakeBickel

    JakeBickel MDL Member

    Nov 9, 2009
    110
    74
    10