Skip to content

Instantly share code, notes, and snippets.

@reatlat
Forked from natesubra/no_mp.bat
Created April 8, 2024 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reatlat/0de517016b7922966d932354efa2c454 to your computer and use it in GitHub Desktop.
Save reatlat/0de517016b7922966d932354efa2c454 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