Microsoft Defender Antivirus is enabled through Windows Security by toggling Real-time protection under Virus & threat protection settings.
Microsoft Defender Antivirus is already installed on every licensed Windows 10 and 11 PC — but it isn’t always actively running. Uninstalling a third-party antivirus can leave the system exposed if Defender doesn’t automatically restart, and group policy or registry edits can turn it off without warning. Knowing how to enable Windows Defender takes about thirty seconds and costs nothing extra. The main control lives inside the Windows Security app, and the steps work the same on both Windows 10 (version 1809 and later) and all editions of Windows 11.
Enabling Windows Defender: The Settings Toggle That Matters
The fastest route to turn on Defender is through the Windows Security app. This is the same interface that shows your overall protection status, firewall state, and app-and-browser controls.
- Open the Start menu, type Security, and select Windows Security from the results.
- Click the Virus & threat protection tile — it has a shield icon and sits in the top row.
- Under the “Virus & threat protection settings” heading, click Manage settings.
- Toggle Real-time protection to On. If prompted by User Account Control, click Yes.
A green checkmark on the Windows Security home screen confirms that Defender is active. If the toggle is grayed out, a third-party antivirus is likely installed and responsible for the system’s protection — Defender will reactivate automatically once that other program is removed and the PC is restarted.
What If Windows Defender Won’t Stay On?
When Defender turns itself off repeatedly or refuses to enable, the cause is almost always something else on the system claiming the antivirus role. The most common scenarios and their fixes are straightforward.
Another antivirus is installed. Defender automatically disables when it detects active third-party protection. Uninstall the other program through Settings > Apps > Installed apps, then restart the computer. Defender will re-enable on its own after the reboot.
A group policy or registry change has disabled it. In managed environments, IT admins sometimes push a policy that turns off Defender. If you’re on a personal machine, open Registry Editor and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender. Set the DisableAntiSpyware value to 0, then restart. (This is also the fix when a previous registry edit or optimization tool switched it off.)
Persistent malware is interfering. Some infections deliberately disable real-time protection to avoid detection. Run Microsoft Defender Offline Scan — it reboots the system into a recovery environment that can remove rootkits and stubborn threats before Defender is started.
| Method | How It Works | Ideal When |
|---|---|---|
| Windows Security app | GUI toggle for Real-time protection | Quick enable after fresh install or re-enable after uninstalling third-party AV |
| Settings path (Win + I) | Privacy & security > Windows Security > Open Windows Security | Users who prefer navigating through Settings |
| PowerShell | Set-MpPreference -DisableRealtimeMonitoring $false with supporting registry keys |
GUI is inaccessible or IT needs scripted enablement across multiple machines |
| Registry Edit | Set DisableAntiSpyware = 0 in HKLM\SOFTWARE\Policies\Microsoft\Windows Defender |
Defender was turned off by prior registry tweak or optimization tool |
| Group Policy Editor | Enable “Turn off Microsoft Defender Antivirus” policy — set to Not Configured or Disabled | Managed workstations where a domain policy is blocking Defender |
| Microsoft Defender Offline | Boots into recovery environment to scan and remove persistent malware | Real-time protection keeps turning off due to rootkits or stubborn infections |
| Microsoft 365 Defender Portal | Cloud-based console for enterprise endpoint management | Business environments using Defender for Endpoint with paid licensing |
Enable Defender via PowerShell When the GUI Won’t Cooperate
If the Windows Security app is unresponsive or the toggle is missing, PowerShell can force Defender back on. Run Windows PowerShell as Administrator and execute the following commands to re-enable real-time scanning and associated protections:
Set-MpPreference -DisableRealtimeMonitoring $false
Set-MpPreference -DisableIOAVProtection $false
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender" -Name "Real-Time Protection" -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" -Name "DisableBehaviorMonitoring" -Value 0 -PropertyType DWORD -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" -Name "DisableOnAccessProtection" -Value 0 -PropertyType DWORD -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" -Name "DisableScanOnRealtimeEnable" -Value 0 -PropertyType DWORD -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender" -Name "DisableAntiSpyware" -Value 0 -PropertyType DWORD -Force
start-service WinDefend
start-service WdNisSvc
Restart the PC after running these commands. This method overrides most registry-based blocks and is documented by Microsoft’s official Defender documentation as a valid recovery path for persistent disable states.
Common Mistakes That Keep Defender Turned Off
A few recurring errors cause Defender to stay disabled even after a user thinks it’s running. The table below covers the patterns that send people back to search results.
| Mistake | Root Cause | Quick Fix |
|---|---|---|
| Third-party antivirus still installed | Defender detects another AV and disables itself | Uninstall the third-party program, restart, then verify Defender is active |
| Skipping the restart after uninstalling | Windows needs a reboot to reinitialize Defender services | Restart the PC, then check Windows Security for the green checkmark |
| Group Policy block not removed | IT policy or local GPO set “Turn off Microsoft Defender Antivirus” to Enabled | Set that policy to Not Configured or Disabled, then run gpupdate /force |
Registry key DisableAntiSpyware = 1 |
Previous tool or manual edit disabled Defender at the registry level | Set the value to 0 or delete the key entirely, then restart |
| Real-time protection keeps turning off on its own | Malware or a corrupted Defender installation | Run Microsoft Defender Offline Scan, then re-enable Real-time protection |
Final Protection Check — Three Things to Verify
Once Defender is enabled, confirm that all layers of protection are actually working. Open Windows Security and check these three items before closing the window.
- Virus & threat protection — a green shield icon and the text “No action needed” means real-time scanning is active. If you see yellow or red, click the tile and turn on any off toggles.
- Firewall & network protection — all three network profiles (Domain, Private, Public) should show a green checkmark. Click each one to turn the firewall on if it’s off.
- App & browser control — Microsoft Defender SmartScreen should be set to Warn for all three options (Edge, apps, and Microsoft Store).
That’s it. Defender handles the rest automatically with definition updates delivered through Windows Update. No subscription, no extra software, and no ongoing maintenance beyond the occasional reboot.
References & Sources
- Microsoft Learn. “Microsoft Defender Antivirus in Windows Security Center.” Official Microsoft documentation for enabling Defender and understanding the Windows Security interface.
- Carleton University IT. “How to enable Windows Defender on personal PC.” Institutional support guide covering the toggle method and third‑party AV removal.
- Huntress Support. “Enable Microsoft Defender via PowerShell.” Verified PowerShell commands for re‑enabling all Defender protection layers.
