Windows to dump option to turn Defender off....

Discussion in 'Windows 10' started by Rickkins, Aug 24, 2020.

  1. Rickkins

    Rickkins MDL Senior Member

    Joined:
    Jul 29, 2009
    Messages:
    343
    Likes Received:
    81
    Trophy Points:
    10
  2. Krakatoa

    Krakatoa MDL Addicted

    Joined:
    Feb 22, 2011
    Messages:
    563
    Likes Received:
    893
    Trophy Points:
    30
    An easy way to deactivate Defender.
    Code:
    pushd "%~dp0"
    NSudoLC -U:T -P:E -Wait -ShowWindowMode:Hide NET stop windefend
    NSudoLC -U:T -P:E -Wait -ShowWindowMode:Hide SC config windefend start=demand
    reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /d 1 /t REG_DWORD /f
    pause
    It still works.
     
  3. bfoos

    bfoos MDL Guide Dog

    Joined:
    Jun 15, 2008
    Messages:
    757
    Likes Received:
    696
    Trophy Points:
    30
    Defender Control still works as well.
     
  4. Rickkins

    Rickkins MDL Senior Member

    Joined:
    Jul 29, 2009
    Messages:
    343
    Likes Received:
    81
    Trophy Points:
    10
    Never heard of it before, but I'll surely check it out. Think it'll still work after they make the changes...?? I guess that's something that remains to be seen....
     
  5. Krakatoa

    Krakatoa MDL Addicted

    Joined:
    Feb 22, 2011
    Messages:
    563
    Likes Received:
    893
    Trophy Points:
    30
    Defender Control does the same thing as the script I provided.
     
  6. bfoos

    bfoos MDL Guide Dog

    Joined:
    Jun 15, 2008
    Messages:
    757
    Likes Received:
    696
    Trophy Points:
    30
    Surely it does, but it also requires use of Nsudo. I'm not bashing Nsudo by any means, in fact I use it myself with a customized json file and added to my Open Shell menu right below the Run item to launch various utilities with no security limitations. But I consider myself to be very much a power user and wouldn't recommend it to anyone without at least my level of knowledge and expertise. And the internet being a wall that often lies albeit sometimes temporarily between me and judgement of someones skill and or knowledge level just won't allow me to. It's right up there with me being unwilling to recommend to someone to completely disable UAC.

    Both apps come from reputable developers, one is dedicated solely to dis/enabling Defender and the other has much wider usage potential. In the end, having a scheduled task launch Defender Control 30 seconds after I log into my account and having it sit in my system tray for when its need arises is just way more convenient than using scripts for me. To each their own!
     
  7. Dude Guyman

    Dude Guyman MDL Member

    Joined:
    Jun 20, 2017
    Messages:
    138
    Likes Received:
    93
    Trophy Points:
    10
    So what update is it that is supposed to do this? If I really can not disable Defender, I will be all done with Windows. I already hate it, but that would be the last straw.
     
  8. Rickkins

    Rickkins MDL Senior Member

    Joined:
    Jul 29, 2009
    Messages:
    343
    Likes Received:
    81
    Trophy Points:
    10
    I'm not sure about what update will include this update, nor whether or not the 'Defender Control' will work around it. I guess we are in a wait and see situation, unless someone much smarter than me(don't start:D) can answer that question...
     
  9. Feniksrising

    Feniksrising MDL Member

    Joined:
    Nov 27, 2016
    Messages:
    174
    Likes Received:
    129
    Trophy Points:
    10
    I think this is not going to happen, Enterprise users won't appreciate it.

    Maybe they'll do it for the Home users.
     
  10. Rickkins

    Rickkins MDL Senior Member

    Joined:
    Jul 29, 2009
    Messages:
    343
    Likes Received:
    81
    Trophy Points:
    10

    One hopes you are right.
     
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Joined:
    Feb 19, 2011
    Messages:
    12,069
    Likes Received:
    55,429
    Trophy Points:
    340
  12. TairikuOkami

    TairikuOkami MDL Expert

    Joined:
    Mar 15, 2014
    Messages:
    1,057
    Likes Received:
    926
    Trophy Points:
    60
    MS added the info about Tamper Protection later, at first they merely stated:
     
  13. BAU

    BAU MDL Addicted

    Joined:
    Feb 10, 2009
    Messages:
    943
    Likes Received:
    2,042
    Trophy Points:
    30
  14. Carlos Detweiller

    Carlos Detweiller MDL Spinning Tortoise

    Joined:
    Dec 21, 2012
    Messages:
    4,514
    Likes Received:
    4,543
    Trophy Points:
    150
    Is it really a .bat or is it only for nostalgia? These days, command scripts use the .cmd extension.
     
  15. BAU

    BAU MDL Addicted

    Joined:
    Feb 10, 2009
    Messages:
    943
    Likes Received:
    2,042
    Trophy Points:
    30
    .cmd is a fake extension, with zero extra functionality, probably from the windows millenium era when ms was artificially hampering the underlying DOS subsystem
    guess old habits die hard since they still hamper win32 atm and try to shovel those s**tty "native" apps down our throats :p
    .bat is the real batch extension, and the superior one at that. pastebin also downloads it as is, without adding the lame .txt like for all other extensions including cmd ;)
     
  16. Carlos Detweiller

    Carlos Detweiller MDL Spinning Tortoise

    Joined:
    Dec 21, 2012
    Messages:
    4,514
    Likes Received:
    4,543
    Trophy Points:
    150
    .cmd was the original extension for all NT-based Windows versions, TMK. .bat was used with the DOS-based ones (.BAT comes from DOS).

    While there might not be any difference today, I remember there was a difference in at least Windows NT4 and possibly 2000, where .cmd used CMD.EXE, while .bat invoked COMMAND.COM and some DOS shims. Well, COMMAND.COM is no more.
     
  17. Windows_Addict

    Windows_Addict MDL Addicted

    Joined:
    Jul 19, 2018
    Messages:
    909
    Likes Received:
    2,012
    Trophy Points:
    30
  18. BAU

    BAU MDL Addicted

    Joined:
    Feb 10, 2009
    Messages:
    943
    Likes Received:
    2,042
    Trophy Points:
    30
    oh yeah I 'member now, the 16bit stuff. but to be fair, old command.com was mature and trumped the newer one for quite some time;
    I did not like much nt, preferred 3.1, 3.11, 9x, xp. At work tough I had my plate full of win2k :p
    still, .bat is the way!
     
  19. Krakatoa

    Krakatoa MDL Addicted

    Joined:
    Feb 22, 2011
    Messages:
    563
    Likes Received:
    893
    Trophy Points:
    30
    #19 Krakatoa, Aug 27, 2020
    Last edited: Aug 27, 2020
    Missing grid (one or two)?
     
  20. BAU

    BAU MDL Addicted

    Joined:
    Feb 10, 2009
    Messages:
    943
    Likes Received:
    2,042
    Trophy Points:
    30
    #20 BAU, Aug 27, 2020
    Last edited: Aug 27, 2020
    no, it's purposely not commented out, meaning default windows value is in effect (ON) lines beginning with # are skipped
    I've layered the personal configuration tweaks in pairs of sp... (set tweaked value) followed by rp (remove tweaked value) for convenience
    (in a text editor with syntax highlight set to powershell it's very easy to enable or disable a script line via a keyboard shortcut or button - I use synwrite and cudatext)

    actually, you're right, there was a syntactic error.
    even more so there was a logic error as the ni (New-Item) with -Force clears existing values :(
    now fixed, plus hiding the intermediary console window popups, and defender notification