Skip to content

Instantly share code, notes, and snippets.

@cutaway
Created June 26, 2021 18:34
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 cutaway/596c4da7327ec3f0fdac7cbfd72a5026 to your computer and use it in GitHub Desktop.
Save cutaway/596c4da7327ec3f0fdac7cbfd72a5026 to your computer and use it in GitHub Desktop.
Disable Windows Defender Powershell
Disable Windows Defender
NOTE: These settings may be permeant.
• Get-MpComputerStatus
• Set-MpPreference -DisableRealtimeMonitoring $true
• Set-MpPreference -DisableBehaviorMonitoring $true
• Set-MpPreference -DisableIntrusionPreventionSystem $true
• Set-MpPreference -DisableIOAVProtection $true
• Set-MpPreference -DisableScriptScanning $true
• Get-MpComputerStatus
Enable Windows Defender
• Get-MpComputerStatus
• Set-MpPreference -DisableRealtimeMonitoring $false
• Set-MpPreference -DisableBehaviorMonitoring $false
• Set-MpPreference -DisableIntrusionPreventionSystem $false
• Set-MpPreference -DisableIOAVProtection $false
• Set-MpPreference -DisableScriptScanning $false
• Get-MpComputerStatus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment