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

Page 7 of 11 FirstFirst ... 56789 ... LastLast

  1. Posts : 4
    Windows 10
       #60

    cb360t said:
    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.
    Update on the Powershell script to display the status of Real-time Protection when you toggle it.


    Open Notepad and paste the following in it. Save it as tog.ps1.


    Code:
    $preferences = Get-MpPreference #gets preferences for the Windows Defender scans and updates
    Set-MpPreference -DisableRealtimeMonitoring (!$preferences.DisableRealtimeMonitoring) #toggle Real-time Protection ON/OFF
    $status = $preferences.DisableRealtimeMonitoring #store current status of Real-time Protection in $status
    Write-host " "
    if ($status) {
       Write-host "Real-time Protection is  ON"
    } Else {
       Write-host "Real-time Protection is  OFF"
    }
    Write-host " "
    Write-host "Press any key to exit"
    $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")|out-null #pause and wait for key press

    Right-click on an empty area on your desktop and select Shortcut.
    Paste the following in the ‘Browse’ box but replace the ‘Path to script’ with the actual path to the script you created.

    %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "C:\Utilities\+Misc\tog.ps1"

    Once you’ve created the shortcut, right-click it and select the ‘Run as administrator’ option.
    When you run the script, the current status of Real-time Protection will be displayed as ON or OFF.
    Of course, you can also pin the shortcut to the start menu and/or the taskbar.
    Last edited by Brink; 27 Feb 2018 at 09:47. Reason: code box
      My Computer

  2. lx07's Avatar
    Posts : 5,479
    2004
       #61

    small typo in section 4.2
    2. Enter the command below you want to use into PowerShell, and press Enter. (see screenshots below)

    (Turn on)
    Set-MpPreference -DisableRealtimeMonitoring 0
    or
    Set-MpPreference -DisableRealtimeMonitoring $true

    OR

    (Turn off)
    Set-MpPreference -DisableRealtimeMonitoring 1
    or
    Set-MpPreference -DisableRealtimeMonitoring $false
    the $true and $false are backwards - in powershell $false is 0 and $true is 1 (or any other number).

    Turn On or Off Real-time Protection for Microsoft Defender Antivirus-capture.png
    Last edited by lx07; 27 Feb 2018 at 08:40. Reason: Picture
      My Computer

  3. Brink's Avatar
    Posts : 56,203
    64-bit Windows 10 Pro for Workstations build 21354
    Thread Starter
       #62

    Thank you lx07. Now corrected. :)
      My Computers


  4. Posts : 6
    Windows
       #63

    Can Anyone figure this out??
    The Real-time protection is turned on and working fine. But from the security center you can see the protection is turned off. Quick Scan Button and Advanced Scan button are missing. Also, The Security Center plays an error sound showing nothing while opening every time.
    Turn On or Off Real-time Protection for Microsoft Defender Antivirus-error2.jpg
      My Computer


  5. Posts : 3
    Windows 10 Pro
       #64

    Niush said:
    Can Anyone figure this out??
    The Real-time protection is turned on and working fine. But from the security center you can see the protection is turned off. Quick Scan Button and Advanced Scan button are missing. Also, The Security Center plays an error sound showing nothing while opening every time.
    Are you using some older version of Windows 10 because I haven't seen that version of Windows Defender fo a long time (the window on the left)?
      My Computer


  6. Posts : 6
    Windows
       #65

    No, It is the latest and up-to date version.
    You can access that old version from:
    Program Files\Windows Defender\MSASCui.exe
      My Computer

  7. Brink's Avatar
    Posts : 56,203
    64-bit Windows 10 Pro for Workstations build 21354
    Thread Starter
       #66

    Hello Niush, and welcome to Ten Forums. :)

    I noticed that the setting is grayed out (disabled) in Windows Defender Security Center. Do you have a group policy set for this?
      My Computers


  8. Posts : 6
    Windows
       #67

    No, There is no policy set. No other Antivirus or anything. The Real-time protection is different in these two application. That is concerning me. I have tried everything possible. (Only Reset left.)
      My Computer

  9. Brink's Avatar
    Posts : 56,203
    64-bit Windows 10 Pro for Workstations build 21354
    Thread Starter
       #68

    Niush,

    If you haven't already, you could see if a repair install may be able to fix it first to hopefully avoid a reset.

    Repair Install Windows 10 with an In-place Upgrade Windows 10 Tutorials
      My Computers


  10. Posts : 6
    Windows
       #69

    Repair might fix it. But at this moment I cannot afford to lose data.
    That is why I have been searching for a simple fix.
    I really doubt it first started after uninstalling IObit ASC. But, I am sure all its components are cleaned.
      My Computer


 
Page 7 of 11 FirstFirst ... 56789 ... LastLast

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 13:11.
Find Us




Windows 10 Forums