Scripts are tested on latest Windows 10 and 11
NOTE: When running manually use the included registry file to allow PowerShell scripts to run
- Included Scripts
This powershell script will use dism and trusted installer privileges to remove defender permanently from the latest Windows 10 and 11 ISO files.
- Strip Windows Defender Firewall
- Disable Virtualization-based Security (VBS) and Mitigation Options Includes [Data Execution Prevention, Control Flow Guard, Randomize Memory Allocations, Validate exception chains, Validate Heap Integrity]
- Strip Bitlocker
Run Script from Console
iwr https://raw.githubusercontent.com/zoicware/DefenderProTools/main/StripDefenderV3.ps1 | iex
USAGE EXAMPLE:
Run Script from Console
iwr https://raw.githubusercontent.com/zoicware/DefenderProTools/main/DisableDefender.ps1 | iex
Due to Microsoft patching all the clever methods of bypassing defender without being in safe mode a brute force approach is required
-
This script will forcibly remove and disable defender registry keys
-
Since this method does not kill the Antimalware service you may need to run the script again if this service still runs upon rebooting
Run Script from Console
iwr https://raw.githubusercontent.com/zoicware/DefenderProTools/main/ReplaceDefender.ps1 | iex
This script will replace Windows Defender with AVG Antivirus
- cleanup AVG shortcuts and context menu
- disable the rest of Windows Defender
- import minimal settings
AVG is a light weight AV that will provide better protection than Windows Defender
Run Script from Console
iwr https://raw.githubusercontent.com/zoicware/DefenderProTools/main/EnableDefender.ps1 | iex
NOTE If you need to run disable defender twice (fe. 24h2) enable defender will not work so its recommended to create a restore point
If you need to revert Windows Defender this script will restore the registry, services, and scheduled tasks.