Created
December 28, 2019 21:29
-
-
Save mark-hallman/8529c2e097ec880748a12c477fca0f31 to your computer and use it in GitHub Desktop.
Stop the "Windows Defender Antivirus Service" from running at startup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-Item -Path "HKLM:\Software\Policies\Microsoft\Windows Defender\" | New-ItemProperty -Name DisableAntiSpyware -Value 1 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can't seem to stop the "Windows Defender Antivirus Service" from running via services.msc, Stop-Service, etc. but I can prevent if from starting after reboot.
Adding this reg key will stop the "Windows Defender Antivirus Service" from running at startup. This PS one-liner will add the key. After adding the key, reboot and the service should be stopped.