Skip to content

Instantly share code, notes, and snippets.

@natesubra
Created May 21, 2020 16:10
Show Gist options
  • 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