I'm trying to disable Real Time Protection in Windows 10 by a PowerShell. So far I tried Set-MpPreference -DisableRealtimeMonitoring $true and sc stop WinDefend, none of them 2 is working. Is there any other command? But only for PowerShell or CMD.
Asked
Active
Viewed 2,675 times
1
mestro65
- 11
-
1You cannot, but you can disable defender>>>>https://superuser.com/a/1590129/40928 – Moab Aug 18 '21 at 23:27
-
No, I need it for powershell or cmd. I'm making a script that turns off defender when started. – mestro65 Aug 19 '21 at 11:39
-
I have never found a way, Microsoft has made is extremely difficult to stop the defender service. – Moab Aug 19 '21 at 20:55
-
That sucks. Well I guess I need to buy SSL, that is the only way to do it. – mestro65 Aug 20 '21 at 01:15
-
@mestro65 - There are free SSL certificates that are trusted by every major browser on every major operating system. – Ramhound Aug 20 '21 at 17:40
-
Please tell me which. – mestro65 Aug 22 '21 at 13:57
1 Answers
-1
same problem here - on some machines, the powershell command is working, on some machines not. we need to turn of the realtimemonitoring for creating docker containers. the user is able to turn it off manually, but hey, that's not a good way ;)
-
ahhh looks like it's the Tamper-Protection, which when it's on, ignores the powershell commands :) - looking for a way to disable it via code. if i find something, i'll tell you – Stephan Weikelt Oct 28 '21 at 12:21