Turn On or Off Real-time Protection for Microsoft Defender Antivirus  

Page 6 of 12 FirstFirst ... 45678 ... LastLast

  1. Posts : 307
    Windows 10
       #50

    Hi

    Are the options five and six still valid for Windows 10 v1709?

    Thanks

    Bye
      My Computer


  2. Posts : 68,672
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #51

    Hello balubeto, :)

    It sure is.
      My Computers


  3. Posts : 1,788
    Win 10
       #52

    Thanks ! Everything was fine with the commercial mapping software I have been using for years, and Defender stopped the image exports using Imagemagic. Now I do have anti virus/trojan software, so I just needed to fix Defender which suddenly decided to block me from making maps and exporting as png/bmp/jpg.

    And Thanks Brink !

    edit;

    ImageMagick.

    Even thoguh I have Defender off for over a year, it downloaded new definiitons and did a scan. Even though I have scan and it turned off. I fixed a typo or two as well above.
    Last edited by jimjoe; 17 Jan 2018 at 12:46.
      My Computer


  4. Posts : 4
    Windows 10
       #53

    I'm attempting to create a CMD script to toggle Real-time protection on and off. If protection is off, the script will toggle it on; however, if protection is on, the script fails with "Error: Access is denied." Any ideas how to fix this issue?

    Code:
    @echo off
    cls
    :: toggles window defender realtime monitoring
    :: if DisableRealtimeMonitoring is 1 then it is OFF
    :: if DisableRealtimeMonitoring is 0 then it is ON
    
    :: look for DisableRealtimeMonitoring value (0) - if it is found then Real-time protection is ON
    REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring | Find "0x0"
    IF %ERRORLEVEL% == 1 goto found
    IF %ERRORLEVEL% == 0 goto notfound
    goto end
    
    :notfound
    cls
    echo.
    echo.
    echo.
    echo Real-time protection is ON - so turn it OFF
    REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f
    echo Real-time protection is now OFF
    goto end
    
    :found
    cls
    echo.
    echo.
    echo.
    echo Real-time protection is OFF - so turn it ON
    REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 0 /f
    echo Real-time protection is now ON
    
    :end
    echo.
    echo.
    echo.
    pause
      My Computer


  5. Posts : 26,417
    Windows 11 Pro 22631.3374
       #54

    cb360t said:
    I'm attempting to create a CMD script to toggle Real-time protection on and off. If protection is off, the script will toggle it on; however, if protection is on, the script fails with "Error: Access is denied." Any ideas how to fix this issue?

    Code:
    @echo off
    cls
    :: toggles window defender realtime monitoring
    :: if DisableRealtimeMonitoring is 1 then it is OFF
    :: if DisableRealtimeMonitoring is 0 then it is ON
    
    :: look for DisableRealtimeMonitoring value (0) - if it is found then Real-time protection is ON
    REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring | Find "0x0"
    IF %ERRORLEVEL% == 1 goto found
    IF %ERRORLEVEL% == 0 goto notfound
    goto end
    
    :notfound
    cls
    echo.
    echo.
    echo.
    echo Real-time protection is ON - so turn it OFF
    REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f
    echo Real-time protection is now OFF
    goto end
    
    :found
    cls
    echo.
    echo.
    echo.
    echo Real-time protection is OFF - so turn it ON
    REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 0 /f
    echo Real-time protection is now ON
    
    :end
    echo.
    echo.
    echo.
    pause
    Run it as an Admin or give it Administrative privileges .
      My Computer


  6. Posts : 4
    Windows 10
       #55

    Josey Wales said:
    Run it as an Admin or give it Administrative privileges .
    Tried that. Doesn't make any difference. I also experimented with the permissions for the registry key but that did not get me anywhere either.
      My Computer


  7. Posts : 68,672
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #56

    Hello cb360t, :)

    If you like, you might see if using the PowerShell commands in Option Four to toggle on/off Windows Defender Real-Time Protection may work better for you.

    You can use Get-MpPreference like below to check the current setting.

    Get-MpPreference

    Turn On or Off Real-time Protection for Microsoft Defender Antivirus-get.png
    Last edited by Brink; 24 Feb 2018 at 14:04.
      My Computers


  8. Posts : 4
    Windows 10
       #57

    Brink said:
    Hello cb360t, :)

    If you like, you might see if using the PowerShell commands in Option Four to toggle on/off Windows Defender Real-Time Protection may work better for you.
    Hi Brink,

    I found a toggle solution at this site:
    https://www.addictivetips.com/window...on-windows-10/

    Thanks for pointing me in the right direction.

    Now if I could just understand why this produces an error (cmd prompt - running as administrator):
    REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f

      My Computer


  9. Posts : 68,672
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #58

    When turned on, Windows Defender protects its registry key, and would be why you get an "Access Denied" message.

    It's a security measure to help prevent malware from being able to turn off Real-Time protection.
      My Computers


  10. Posts : 1,788
    Win 10
       #59

    I used the reg file to turn off Defender. Then it started telling me I had turned off Defender and I was helpless. Well, I have pcmatic. So I'm neither helpess nor defenseless. Composer update crashed my cmoputer last fall. MS has some serious problems they need to fix. Yes Brink, I know, they will claim they don't make mistakes. And yet they do... :-|

    Apparently MS is trying their level best to make more people go to Linux... unfortunately I can't play Everquest on Linux, the nice people at daybreak Games don't like Linux. Yes peanut gallery, Everquest is still around.
      My Computer


 

Tutorial Categories

Turn On or Off Real-time Protection for Microsoft Defender Antivirus 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 08:30.
Find Us




Windows 10 Forums