Skip to content

Instantly share code, notes, and snippets.

@GabiNun
Last active December 14, 2025 23:55
Show Gist options
  • Select an option

  • Save GabiNun/17c4cc1a9cd6069e729947c4363513cc to your computer and use it in GitHub Desktop.

Select an option

Save GabiNun/17c4cc1a9cd6069e729947c4363513cc to your computer and use it in GitHub Desktop.
Remove-Item 'C:\Program Files*\Windows Defender*' -Recurse -Force
Set-ItemProperty 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' 'DisableAntiSpyware' -Value 1
Set-ItemProperty 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' 'DisableAntiVirus' -Value 1
Set-ItemProperty 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' 'ServiceKeepAlive' -Value 1
Remove-Item 'HKLM:\SYSTEM\CurrentControlSet\Services\SecurityHealthService' -Recurse -Force
Remove-ItemProperty 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run' SecurityHealth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment