Voltar ao ranking

pgkt04/defender-control

C++

An open-source windows defender manager. Now you can disable windows defender permanently.

windowsdefender
Crescimento de estrelas
Estrelas
1.9k
Forks
131
Crescimento semanal
Issues
14
5001k1.5k
jun. de 2021fev. de 2023nov. de 2024jul. de 2026
README

Defender 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

  1. Open Windows Security > Virus & threat protection > Manage settings.

  2. Turn Tamper Protection off.

  3. Turn Real-time protection off (temporary, also stops Defender eating the exe).

  4. Run the tool as admin (it relaunches itself as TrustedInstaller):

    disable-defender.exe
    
  5. Reboot (optional, but do it for full effect).

Note: failed to write to TamperProtection and similar kernel-locked / error 5 lines 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

  1. Runs as TrustedInstaller.
  2. Sets the disabling policies and locks down the Security UI.
  3. 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

Demo

Release

See the releases on the right, or here.

Repositórios relacionados
massgravel/Microsoft-Activation-Scripts

Open-source Windows and Office activator featuring HWID, Ohook, TSforge, and Online KMS activation methods, along with advanced troubleshooting.

BatchfileGNU General Public License v3.0hwidkms38
massgrave.dev
184k17.6k
flutter/flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond

DartBSD 3-Clause "New" or "Revised" Licensemobileandroid
flutter.dev
177.9k30.7k
jlevy/the-art-of-command-line

Master the command line, in one page

bashunix
161.9k14.8k
microsoft/PowerToys

Microsoft PowerToys is a collection of utilities that supercharge productivity and customization on Windows

CMIT Licensepowertoysdesktop
136.6k8.3k
clash-verge-rev/clash-verge-rev

A modern GUI client based on Tauri, designed to run in Windows, macOS and Linux for tailored proxy experience

TypeScriptnpmGNU General Public License v3.0clashclash-meta
clashverge.dev
133k9.6k
rustdesk/rustdesk

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

Rustcrates.ioGNU Affero General Public License v3.0remote-controlremote-desktop
rustdesk.com
118.6k18.1k
nodejs/node

Node.js JavaScript runtime ✨🐢🚀✨

JavaScriptnpmOthernodejsjavascript
nodejs.org
118.4k36.2k
2dust/v2rayN

A GUI client for Windows, Linux and macOS, support Xray and sing-box and others

C#GNU General Public License v3.0windowsproxy
v2rayn.2dust.link
111.9k15.6k
microsoft/terminal

The new Windows Terminal and the original Windows console host, all in the same place!

C++MIT Licenseconsoleterminal
104.3k9.4k
ventoy/Ventoy

A new bootable USB solution.

CGNU General Public License v3.0bootable-usbmultiboot
ventoy.net
78.2k4.9k
alacritty/alacritty

A cross-platform, OpenGL terminal emulator.

Rustcrates.ioApache License 2.0terminal-emulatorsopengl
alacritty.org
65k3.5k
tldr-pages/tldr

Collaborative cheatsheets for console commands 📚.

MarkdownOthershellman-page
tldr.sh
63.2k5.3k