Skip to content

Instantly share code, notes, and snippets.

@natesubra
Created May 21, 2020 16:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save natesubra/c653cc42d258fbf3b2fd56d33759b79a to your computer and use it in GitHub Desktop.
Save natesubra/c653cc42d258fbf3b2fd56d33759b79a to your computer and use it in GitHub Desktop.
Disable Windows Defender - Powershell
# disable
powershell -command 'Set-MpPreference -DisableRealtimeMonitoring $true -DisableScriptScanning $true -DisableBehaviorMonitoring $true -DisableIOAVProtection $true -DisableIntrusionPreventionSystem $true'
# Or exclude
powershell -command 'Add-MpPreference -ExclusionPath "c:\temp" -ExclusionProcess "c:\temp\yourstuffs.exe"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment