Windows Defender

Disable real time monitoring

Set-MpPreference -DisableRealtimeMonitoring $true

Disable scanning for downloaded files (more silent and preferred)

Set-MpPreference -DisableIOAVProtection $true

Create an exclusion

Add-MpPreference -ExclusionPath "C:\Windows\Temp"

Last updated