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.
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
-
this script will disable all services/processes related to windows defender
- Note : windows defender firewall is not touched
-
to bypass tamper protection a temporary antivirus needs to be installed
-
Credits to @AveYo for the disable MsMpEng service snippet
NOTE: To prevent smartscreen from running renaming the exe file is needed but windows will repair this file when running
sfc /scannow
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
If you need to revert Windows Defender this script will restore the registry, services, and scheduled tasks.