pgkt04/defender-control
pgkt04/defender-control has 2,117 GitHub stars and 142 forks. GitHot measured +4 stars in 24 hours. Last checked 2026-11-06 01:58 UTC. Last push 2026-06-26.
An open-source windows defender manager. Now you can disable windows defender permanently.
Measured star growth
- in 24h
- +4
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalDefender Control
Open source Windows Defender disabler. Works on Windows 10 and 11.
Releases ship two binaries: disable-defender.exe and enable-defender.exe.
Microsoft flags this tool
This repo has been public for years, so Defender ships a signature for it
(HackTool:Win32/DefenderControl) and will quarantine the exe on sight. It is a category
detection that hits any Defender disabler, not proof the code is unsafe. It is open source,
review or compile it yourself.
How to disable
Open Windows Security > Virus & threat protection > Manage settings.
Turn Tamper Protection off.
Turn Real-time protection off (temporary, also stops Defender eating the exe).
Run the tool as admin (it relaunches itself as TrustedInstaller):
disable-defender.exeReboot (optional, but do it for full effect).
Note:
failed to write to TamperProtectionand similarkernel-locked/error 5lines are expected. Those keys are guarded by Defender while the engine is running. The tool gets past this by renaming the Defender drivers instead (see below), which takes effect on the next boot.
How it works
- Runs as TrustedInstaller.
- Sets the disabling policies and locks down the Security UI.
- Renames Defender's drivers (
WdFilter.sys,WdBoot.sys, ...) and engine binaries to.OLD.
With the drivers gone the engine cannot start at the next boot, so no Safe Mode is needed.
A restore list is saved to %ProgramData%\defender-control so it can all be undone.
How to re-enable
Run the enable binary as admin, then reboot:
enable-defender.exe
It renames the .OLD files back, clears the policy and UI lockdown keys, restores
ownership, and sets WinDefend to auto-start.
Check status
After disabling, the Security UI is locked, so check state from a terminal:
disable-defender.exe -c
Shows live antivirus / real-time / tamper status, whether MsMpEng is running, and a
verdict. Add -s to skip the pause.
If Defender won't come back
Run from an elevated terminal:
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Then reboot. If that does not fix it, do an in-place repair upgrade (Windows ISO or
Installation Assistant, run setup.exe, keep files and apps).
Compile
Open in Visual Studio 2022, set Release / x64, pick disable or enable in
settings.hpp, then build.
Demo

Release
See the releases on the right, or here.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,411 starspublic-apis/public-apis
A collective list of free APIs
496,738 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
437,830 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,061 stars