You can't fully turn off Windows Defender through normal Settings on a current Windows 11 or Windows 10 PC. What most people actually need is "real-time protection off temporarily," and that's a switch in Windows Security that flips back automatically after a restart or after a period Microsoft controls. Fully disabling the engine requires Group Policy, a registry change under Tamper Protection, or a third-party antivirus that takes over the antivirus role. The steps below follow that reality: temporary off, then the deeper methods in ascending order of risk.
What "Turning Off Windows Defender" Actually Means on Windows 11 and 10
Microsoft renamed the product. Windows Defender Antivirus is now Microsoft Defender Antivirus, and it lives inside the Windows Security app rather than as a standalone program. That matters because every tutorial that tells you to open "Windows Defender" from the Start menu is pointing at an interface that no longer exists in current builds. The settings are still there, just relocated.
Three distinct states get confused constantly. Real-time protection is the live scanner that watches files as they open. Cloud-delivered protection sends file metadata to Microsoft for a second opinion. Tamper Protection is a separate guard that blocks changes to Defender's own settings, including registry edits and policy changes made by non-Microsoft tools. Turning off the first does nothing to the third, which is why registry tricks fail on most consumer machines sold since 2019.
The version you're on changes what you see. Windows 11 22H2 and later builds, plus Windows 10 20H1 and later, ship Tamper Protection on by default for home users. Older Windows 10 builds and many enterprise images have it off unless an administrator enabled it. Check your build number by typing winver into the Run dialog before following any method here.
There's also a licensing split that changes the answer entirely. Windows Security's device performance and health, firewall, and app and browser control sections are largely free. Defender's advanced management, including some policy controls, assumes a Microsoft 365 or enterprise management stack. Home users on Windows 11 Home get the Settings toggle and not much else beyond the registry route.
The Fastest Method: Switching Off Real-Time Protection in Windows Security
This is the only method that works identically on every Windows 10 and 11 edition, and it's the one to try first. Open the Start menu, type Windows Security, and press Enter. Click Virus & threat protection in the left-hand navigation. Under the Virus & threat protection settings heading, click Manage settings.
Scroll to the Real-time protection row and toggle it to Off. A User Account Control prompt appears asking for administrator approval; click Yes. Windows immediately shows a shield icon with a red or amber warning in the taskbar notification area. The toggle also greys out the cloud-delivered protection and automatic sample submission switches below it, because those depend on the live scanner.
Three things happen next, and they trip people up. A notification appears saying "Virus & threat protection is turned off." The setting reverts to On automatically after a restart, and on many builds it also reverts after a fixed interval Microsoft doesn't publish, commonly reported as roughly 15 minutes to an hour in practice. And Tamper Protection, if enabled, may block the toggle outright and grey it out entirely, in which case you'll need to disable that first under Virus & threat protection β Manage settings β Tamper Protection.
If the toggle snaps back to On within seconds, something else is managing your device. Check for a third-party antivirus in Apps β Installed apps; a registered security product takes over the antivirus role and Windows Security reports it as the active provider. Corporate devices enrolled in Intune or managed by Group Policy will also override your local change without warning.
How to Turn Off Windows Defender Permanently With Group Policy
Group Policy is the cleanest permanent method, and it only exists on Windows 11 Pro, Enterprise, and Education, plus Windows 10 Pro and above. Home editions do not have the Group Policy Editor, so skip to the registry section. Press Win+R, type gpedit.msc, and press Enter.
Navigate to Computer Configuration β Administrative Templates β Windows Components β Microsoft Defender Antivirus. Double-click Turn off Microsoft Defender Antivirus in the right pane. Select Enabled, then click Apply and OK. Restart the PC for the policy to take effect; the setting does not apply live.
The policy writes to the registry path HKLM\SOFTWARE\Policies\Microsoft\Windows Defender under the value DisableAntiSpyware set to 1. That value has been deprecated by Microsoft for consumer devices since the August 2020 update, meaning on many home PCs the policy appears to apply but Defender keeps running. Microsoft's own documentation states the policy is no longer supported for consumer installations, which is why enterprise images still honor it and retail machines often don't.
You'll know it worked when Windows Security shows the message "Your device is using an alternative antivirus provider" or when the Virus & threat protection page displays a blank or unavailable state. If neither appears after a restart, the policy was overridden. Run gpresult /h report.html from an elevated command prompt to see which policies actually applied, and check the report for the Defender section.
Reversing it is a two-minute job. Set the same policy to Not Configured, restart, and confirm in Windows Security that real-time protection is back on. Don't leave the policy Enabled and forget about it; a machine running without any antivirus for months is how ransomware stories start.
Registry Route for Home Editions and Machines Without gpedit.msc
Home users get to the same goal through the registry, but Tamper Protection blocks the edit unless you disable it first. Open Windows Security β Virus & threat protection β Manage settings β Tamper Protection and set it to Off. You'll need administrator rights and a restart before the change holds.
Press Win+R, type regedit, and press Enter. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender. If the Windows Defender key doesn't exist under Policies\Microsoft, right-click Microsoft, choose New β Key, and name it Windows Defender. In the right pane, right-click, choose New β DWORD (32-bit) Value, and name it DisableAntiSpyware.
Double-click it, set Value data to 1, and click OK. Restart the PC. Defensive software often watches this key, so expect one of three outcomes: the change holds permanently, the value reverts after a reboot, or Windows Security shows a toast saying "Tamper Protection blocked a change to your settings" and rewrites the value within minutes.
If the value reverts, the machine is being managed by something you can't see from the desktop. Check Settings β Accounts β Access work or school for an enrolled organization, and check whether a third-party security suite is registered as the antivirus provider. Unenrolling from a work account is a policy decision, not a technical one, so talk to your IT department before doing it.
Before you touch the registry, export the key. Right-click the Windows Defender key, choose Export, save it to your Desktop, and label it with today's date so you can restore it. A botched registry edit can leave Defender in a state where it neither runs nor lets you reinstall it cleanly.
When a Third-Party Antivirus Takes Over Automatically
Installing a competing antivirus is the sanctioned way to make Defender stand down, and it requires no hacks at all. Windows Security detects the registered product through the Windows Security Center API and switches Defender into passive mode. On current Windows 11 builds, Defender stays in passive scanning mode rather than fully off, which means scheduled scans may still run and you may still see Defender entries in the protection history.
The trigger is registration, not installation. A product must declare itself to Windows Security Center to flip the switch. Portable scanners, some free tools, and browser extensions won't do it. Bitdefender, Norton, McAfee, Avast, ESET, and Kaspersky all register correctly; less mainstream tools sometimes don't, and Defender remains the active provider alongside them, which produces the conflicts users complain about.
Uninstalling the third-party product returns Defender to active status automatically, usually within a minute or after a restart. That's worth knowing because it makes this the safest reversible route: you're never permanently disabled, and removing the other software restores protection without you touching a single setting. The trade-off is cost and the second product's own telemetry and renewal pricing, which vary by vendor and region.
One practical wrinkle: some enterprise security stacks deliberately keep Defender running in limited periodic scanning mode even with a third-party product registered. That's a policy set by your organization, not a bug, and you can see it under Virus & threat protection if the page shows both an active provider and a Defender status line.
Comparison of the Four Disabling Routes
| Method | Windows edition required | Survives a restart | Reversible in under 5 minutes | Blocks Tamper Protection? |
|---|---|---|---|---|
| Settings toggle | All editions | No (auto-reverts) | Yes | No, but Tamper Protection blocks the toggle itself |
| Group Policy Editor | Pro, Enterprise, Education | Yes, if policy applies | Yes | No, bypasses it on managed builds |
| Registry DWORD | All editions (Tamper Protection off first) | Sometimes, build-dependent | Yes, with a saved export | No, blocked while Tamper Protection is on |
| Third-party antivirus | All editions | Yes, while product installed | Yes, by uninstalling | Not applicable |
Read the table with the failure column in mind. Group Policy looks strongest but is deprecated for consumer installs, so a Windows 11 Home user can't use it and a Windows 11 Pro user on a retail license may find it silently ignored. The registry is the most universal route but the least durable, because Tamper Protection and Windows feature updates repeatedly rewrite the key. The Settings toggle is the only one guaranteed to work and the only one guaranteed to stop working without you doing anything.
For a home user who needs Defender off for an hour to run a false-positive-prone build tool, the Settings toggle wins. For someone maintaining an offline lab machine that must never scan, Group Policy on a Pro license is the durable answer. For a user already paying for a security suite, the third-party route costs nothing extra and requires the least technical work.
What Changes in Your Protection When Defender Is Off
Disabling real-time protection leaves more gaps than most people expect. Windows Security's ransomware protection, controlled folder access, and network protection all depend on the same engine, so they go quiet with it. The firewall is a separate component and keeps running, so inbound network traffic is still filtered, but file-based threats on the disk are unmonitored until you turn scanning back on.
Scheduled scans stop. On default settings, Defender runs a quick scan when the machine is idle and a full scan weekly, both configured under Virus & threat protection β Scan options. With real-time protection off but the service still running in some configurations, scheduled scans may continue; with the policy or registry method in place, they generally don't. Either way, the protection history stops accumulating new detections.
Windows Update still delivers Defender platform and definition updates unless you've disabled the update service separately. That's a subtle point: a disabled Defender with current definitions can still be reactivated quickly, which is why the reversible methods are preferable to ripping the engine out. Microsoft's definition updates ship multiple times a day through the Malicious Software Removal Tool and the standard update channel.
Browser-level protections are largely unaffected. SmartScreen in Edge and Chrome runs independently of the Defender engine on most current builds, so downloaded-file warnings and phishing blocks still appear. That's cold comfort if you're opening files from a USB stick or a network share, neither of which gets SmartScreen scrutiny the same way.
Situations Where Disabling Defender Is Legitimate
Development machines running unsigned binaries top the list. Compiling native code, testing drivers, or running an unpacked executable triggers Defender's heuristic detections regularly, and adding exclusions under Virus & threat protection β Manage settings β Exclusions solves most of those cases without disabling anything. Microsoft's own documentation recommends exclusions over disabling for this reason.
Performance testing is the second legitimate case. Benchmarking a disk, a build pipeline, or a game install benefits from shutting off live scanning for the duration, and the Settings toggle's automatic revert is exactly the safety net you want. Leave it off permanently and your benchmark numbers are no longer comparable to a real user's machine anyway.
Legacy software with known false positives is the third. Some industrial control software, older medical imaging clients, and niche CAD tools are flagged by Defender's heuristics. Add the install directory and its working folders to exclusions rather than disabling the engine; the exclusion list persists across restarts and doesn't expose the rest of the machine.
Machines deliberately kept offline for air-gapped work are the fourth, and the only case where full permanent disable is defensible. If the machine never touches a network and never accepts removable media, the engine has nothing to check anyway. Even then, disabling Defender on a machine that later gets connected is a recovery project, not a settings change.
Common Failures and How to Recover From Them
The most common failure is a toggle that won't stay off. That almost always means Tamper Protection is on and blocking it, or a management policy is overriding it. Check Windows Security's Tamper Protection status first, then check Settings β Accounts β Access work or school for an enrolled organization. A third cause, less common, is a leftover third-party antivirus that registered but was improperly uninstalled; the vendor's removal tool fixes that.
A disabled Defender that refuses to re-enable is the second. If the Settings toggle is greyed out after you've undone your changes, restart the machine and try again; Windows sometimes needs a full restart to re-evaluate the security center state. If it's still greyed, run Get-MpComputerStatus in an elevated PowerShell window and look at the AMServiceEnabled and RealTimeProtectionEnabled fields to see what the engine reports.
Registry edits that revert within minutes are usually Tamper Protection reasserting control. The value in HKLM\SOFTWARE\Policies\Microsoft\Windows Defender gets rewritten, and the event log under Applications and Services Logs β Microsoft β Windows β Windows Defender β Operational records the block. That log is the fastest way to see why a change failed, and it's rarely mentioned in tutorials.
Re-enabling after a botched attempt is straightforward if you saved a registry export. Double-click the .reg file, confirm the merge, and restart. If you didn't export, run gpupdate /force on a Pro machine, delete the DisableAntiSpyware DWORD on a Home machine, and reinstall the third-party product you removed. A full Windows Security reset under Settings β Apps β Installed apps β Windows Security β Advanced options β Reset clears corrupted state as a last resort.
Risks, Policy Boundaries, and What to Restore Afterward
Running without antivirus is a decision that belongs to the machine's owner, and on a work device it usually isn't yours to make. Corporate policy, managed device agreements, and some regulatory frameworks in healthcare and finance require active endpoint protection. Disabling it on such a device can be a compliance violation, not just a technical one.
Microsoft's own position is that Defender should remain on unless a third-party product is registered. The company deprecated the consumer-facing disable policy for that reason, and Tamper Protection exists specifically to make permanent disabling hard. Fighting that design choice is possible, but you should know you're going against the vendor's stated intent and against the Windows security model.
The realistic middle path for most people: use exclusions for known false positives, use the Settings toggle for short-term work, and only escalate to policy or registry changes on machines you own outright with no organizational management. If you need performance headroom for a benchmark, turn it off, run the test, and turn it back on the same day.
Whatever you disabled, restore it afterwards. Confirm in Windows Security that real-time protection reads On, that the shield icon in the taskbar is not showing a warning, and that Get-MpComputerStatus reports RealTimeProtectionEnabled : True. Run a quick scan once protection is back to catch anything that arrived during the window. And if a device is managed, tell your administrator before you change anything; they can see the gaps in the management console either way.
FAQ
Does turning off real-time protection turn off Defender completely?
No. It stops the live file scanner while leaving the service running, and Windows typically re-enables it after a restart or a shorter interval. Full engine shutdown needs Group Policy, a registry value, or a registered third-party antivirus. Microsoft deprecated the consumer disable policy in its August 2020 Windows 10 update, which is why many tutorials written before that date no longer match behavior on current builds.
Why is the real-time protection toggle greyed out?
Tamper Protection is the usual cause, and it's on by default for home users since the Windows 10 20H1 release. Turn it off under Virus & threat protection β Manage settings, then retry. If the toggle stays greyed after that, a work or school account is managing the device, and local changes will be overridden at the next policy refresh, typically within 90 minutes.
Can I turn off Windows Defender without installing anything?
Yes, using the Settings toggle on every edition, or the registry DWORD on Home editions with Tamper Protection disabled. Neither requires new software. The registry route is less durable than it looks: Windows feature updates and Defender platform updates can rewrite the value, and Tamper Protection blocks the edit until you turn it off.
Does installing another antivirus delete Windows Defender?
It doesn't delete it; it moves Defender into passive mode. The engine stays installed and resumes active protection if you uninstall the third-party product. On managed enterprise machines, Defender may keep running in limited periodic scanning mode alongside the registered product, which you can see on the Virus & threat protection page.
How long does Defender stay off after using the toggle?
Microsoft doesn't publish the exact interval, and it varies by build and by what triggered the change. Restarting always resets it, and in practice the toggle often reverts within about 15 minutes to an hour on Windows 11. Treat it as a short work window, not a permanent setting, and plan your task to finish inside it.
Is disabling Windows Defender a security risk?
It removes live file scanning, ransomware protection, controlled folder access, and network protection for the duration. SmartScreen in the browser keeps working on current builds, so web downloads still get warnings, but files from USB drives and network shares lose that layer. On a managed work device, disabling it may also breach your organization's compliance policy.
What happens to Defender if I unenroll from my work account?
Unenrolling removes the organization's policies at the next refresh, which can restore your local settings including a previously blocked toggle. Whether you're allowed to unenroll is a policy question for your IT department; doing it to bypass security controls on a corporate device is usually a violation of the device agreement.
Why did my registry change revert within minutes?
Tamper Protection rewrote the value, and the Windows Defender Operational event log records the block. Confirm Tamper Protection is off before editing, export the key first, and restart rather than expecting a live change. If the value still reverts, a management policy is enforcing it, and the gpresult report will name which one.