Use Powershell to Defend attack and Protect Windows Defender . In this page i will show you , how you can manage security using powershell.
Note : The Following commands need to run in Powershell(Admin) console.
Set-MpPreference -DisableRealtimeMonitoring $true
Set-MpPreference -DisableAntivirus $true
Disable Windows Defender Behavior Monitoring
Set-MpPreference -DisableBlockAtFirstSeen $true
To apply the changes, you need to restart the Windows Security service . To do that
Restart-Service -Name "WinDefend"
Get-MpComputerStatus