Skip to content

Instantly share code, notes, and snippets.

@ffcommax
Last active September 12, 2021 13:15
Show Gist options
  • Select an option

  • Save ffcommax/e7ef56519012fb8cc2b7a2629283f3ab to your computer and use it in GitHub Desktop.

Select an option

Save ffcommax/e7ef56519012fb8cc2b7a2629283f3ab to your computer and use it in GitHub Desktop.
Disable Defender
# Disable realtime monitoring altogether
Set-MpPreference -DisableRealtimeMonitoring $true
# Only disables scanning for downloaded files or attachments
Set-MpPreference -DisableIOAVProtection $true
Add-MpPreference -ExclusionPath "C:\Users\Public\Downloads\SuperLegitDownloadDirectory"
"C:\Program Files\Windows Defender\MpCmdRun.exe" -RemoveDefinitions -All
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment