Add scripts for disabling and enabling Windows Defender malware service

This commit is contained in:
2022-10-26 15:26:55 -04:00
parent 6965090c6f
commit 7a7c9c87be
4 changed files with 216 additions and 3 deletions

View File

@@ -93,10 +93,13 @@ processor time and is generally useless.
some testing and didn't see any speedup when excluding a project folder.
* Go into the Windows security settings and disable `Tamper Protection`.
* winkey+r -> `gpedit.msc`.
* Can now disable either with a policy or some custom batch files.
* Policy:
* Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus -> Real-time Protection
* Double-click the `Turn off real-time protection` policy.
* Select Enabled (you may have to restart PC).
* If you want to re-enable then change the policy to `Not configured` and re-enable tamper protection.
* Batch files: in `dotfiles/bin` run `antimalware-service-disable.bat` then restart. Reenable it with `antimalware-service-enable.bat`
* Enable/disable various Window features:
* Go to Add/Remove Programs -> Turn Windows features on or off