I can't enable/disable real-time monitoring in Windows 10 using PowerShell ISE (as administrator). I have run the command Set-MpPreference -DisableRealtimeMonitoring $false for disabling real-time monitoring (in case it is enabled) and Set-MpPreference -DisableRealtimeMonitoring $true for enabling real-time monitoring (in case it is disabled).
1 Answer
The only way I have been able to Set-MpPreference -DisableRealtimeMonitoring $true is to disable "Tamper Protection" in the Windows Security App. Then you can run Set-MpPreference -DisableRealtimeMonitoring $true and then Get-MpComputerStatus to see RealTimeProtectionEnabled : False and set fasle to re-enable RealTimeProtection