Created
May 21, 2020 16:10
-
-
Save natesubra/c653cc42d258fbf3b2fd56d33759b79a to your computer and use it in GitHub Desktop.
Disable Windows Defender - Powershell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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