How to Turn On or Off Microsoft Defender Antivirus in Windows 10  

Page 31 of 31 FirstFirst ... 21293031
  1. Chrysalis's Avatar
    Posts : 166
    Win 10 1809 LTSC
       #300

    Matthew Wai said:
    It works on Home if the commands are run via NSudo, which is used in my scripts for controlling Windows Update.
    My task does the same except its automated. Just add my task to task scheduler, when it sees in the log that windows defender real time has been turned on it will auto flip to off.
      My Computer


  2. Posts : 37
    Windows 10
       #301

    Matthew Wai said:
    It works on Home if the commands are run via NSudo, which is used in my scripts for controlling Windows Update.
    Where can I find your scripts?

    Do they work with Win10 HOME as well?
      My Computer

  3. Chrysalis's Avatar
    Posts : 166
    Win 10 1809 LTSC
       #302

    tobwen said:
    Where can I find your scripts?

    Do they work with Win10 HOME as well?
    Hi my post is here

    How to Turn On or Off Microsoft Defender Antivirus in Windows 10

    Sadly i couldnt attach the exported script for some reason, but I may try to attach it again later.
      My Computer

  4. Matthew Wai's Avatar
    Posts : 5,014
    Windows 10 Home 20H2
       #303

    tobwen said:
    Where can I find your scripts?
    Using CMD script and VBScript to control Windows Update

    tobwen said:
    Do they work with Win10 HOME as well?
    They work perfectly on my Windows 10 Home.

    Chrysalis said:
    Sadly i couldnt attach the exported script for some reason, but I may try to attach it again later.
    Write a tutorial if you find it useful.
      My Computer

  5. Brink's Avatar
    Posts : 56,224
    64-bit Windows 10 Pro for Workstations build 21354
    Thread Starter
       #304

    Chrysalis said:
    Sadly i couldnt attach the exported script for some reason, but I may try to attach it again later.
    If you haven't already, you might see if you can ZIP the script, and upload and attach the ZIP file instead.

    How to Upload and Post Screenshots and Files at Ten Forums
      My Computers

  6. Chrysalis's Avatar
    Posts : 166
    Win 10 1809 LTSC
       #305

    Matthew Wai said:
    Using CMD script and VBScript to control Windows Update

    They work perfectly on my Windows 10 Home.

    Write a tutorial if you find it useful.

    I did but I accept the post is somewhat messy.
    Brink said:
    If you haven't already, you might see if you can ZIP the script, and upload and attach the ZIP file instead.

    How to Upload and Post Screenshots and Files at Ten Forums
    Ok fingers crossed upload works as zip.

    RenewDisableDefenderRT.zip

    1 - extract zip.
    2 - Copy the "Defender-Realtime-Disable.cmd" to "C:\Program Files"
    3 - import task as follows in admin command prompt.

    schtasks /create /Ru SYSTEM /TN "RenewDisableDefenderRT" /XML RenewDisableDefenderRT.xml

    This task will auto deactivate defender real time whenever its enabled, if its already enabled you will need to manually deactivate it once first. The task is accessible in main task scheduler folder, from there it can be edited, disabled, or deleted.

    If you dont want to use "C:\Program Files" as the destination you can put the command file elsewhere but will need to edit the script path in the task to match.
    Last edited by Brink; 1 Week Ago at 20:42. Reason: attached uploaded file
      My Computer


  7. Posts : 20
    Windows 7
       #306

    Doesn't work for me. MsMpEng.exe is still running.

    - - - Updated - - -

    Chrysalis said:
    I did but I accept the post is somewhat messy.


    Ok fingers crossed upload works as zip.

    RenewDisableDefenderRT.zip

    1 - extract zip.
    2 - Copy the "Defender-Realtime-Disable.cmd" to "C:\Program Files"
    3 - import task as follows in admin command prompt.

    schtasks /create /Ru SYSTEM /TN "RenewDisableDefenderRT" /XML RenewDisableDefenderRT.xml

    This task will auto deactivate defender real time whenever its enabled, if its already enabled you will need to manually deactivate it once first. The task is accessible in main task scheduler folder, from there it can be edited, disabled, or deleted.

    If you dont want to use "C:\Program Files" as the destination you can put the command file elsewhere but will need to edit the script path in the task to match.
    How do you manually deactivate "it" first and how to undo this operation?

    - - - Updated - - -

    Anolin said:
    Yep, it's called Defender Control and can be found at Simplify Your computer Usage
    Thank you. Why aren't others using this? This works great unlike the other suggestions.

    Are there any cons to using this where it may cause you issues in not restartng the service when you want to?
      My Computers

  8. Chrysalis's Avatar
    Posts : 166
    Win 10 1809 LTSC
       #307

    Sammy888 said:
    Doesn't work for me. MsMpEng.exe is still running.

    - - - Updated - - -


    How do you manually deactivate "it" first and how to undo this operation?
    You open security dashboard and disable realtime protection, and to undo it you simply disable the task or delete the task.



    - - - Updated - - -




    Sammy888 said:
    Thank you. Why aren't others using this? This works great unlike the other suggestions.

    Are there any cons to using this where it may cause you issues in not restartng the service when you want to?
    Me personally its because its a closed source 3rd party program. Also I still want the application exploit protection, its just the real time file scanning I want disabled.
      My Computer


 
Page 31 of 31 FirstFirst ... 21293031

Tutorial Categories

How to Turn On or Off Microsoft Defender Antivirus in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 20:30.
Find Us




Windows 10 Forums