Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: ServiceKeepAlive must be set to 0 to properly disable Windows Defender. #426

Open
Od1sseas opened this issue Sep 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Od1sseas
Copy link

Od1sseas commented Sep 8, 2024

Description

I noticed that in the script ServiceKeepAlive is set to 1. This is wrong. The value must be set to 0 to properly disable Windows Defender.

https://admx.help/?Category=Windows_10_2016&Policy=Microsoft.Policies.WindowsDefender::ServiceKeepAlive

How can the bug be recreated?

:: ----------------------------------------------------------
:: --------Disable always running antimalware service--------
:: ----------------------------------------------------------
echo --- Disable always running antimalware service
PowerShell -ExecutionPolicy Unrestricted -Command "$data = '1'; reg add 'HKLM\Software\Policies\Microsoft\Windows Defender' /v 'ServiceKeepAlive' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------

Operating system

No response

Script file

No response

Screenshots

No response

Additional information

No response

@Od1sseas Od1sseas added the bug Something isn't working label Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant