I work with many test PCs, so I want to automate the procedure for installing OS and setting up.
- Disabling anti-virus is one of the set-up steps via the below, with it working well for a while, but now doesn't work, showing error
Access Denied
:Reg Add "HKLM\software\policies\microsoft\windows defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f
I found that "Tamper Protection" blocks attempts to modify registry keys for Windows Defender; I know how to turn it off using GUI, but for automating, I'd like to do this via CLI.
- I tried to modify the registry key for "Tamper Protection" via
regedit
, but it seems it blocks the attempt to modify itself
Is there any way to turn off "Tamper Protection" using command line?