Windows Defender won’t turn on most often because another antivirus program is still installed, or because some Windows files are damaged. The fix is to work through the causes in order: remove any leftover antivirus, turn real-time protection back on, repair Windows files, and run an offline scan if the problem is still there.
Your computer is unprotected while Defender is off. Do not open email attachments, download files, or sign in to banking or email accounts until protection is back on. The steps below go from the quickest check to the deepest repair, and none of them needs a paid tool, a downloaded “fixer,” or a registry edit.
Start by finding out what Windows Security itself is telling you. Open the Windows Security app, then open Protection history. Microsoft’s own support page says protection history lists the actions Defender has taken, apps that were removed, and key services that are turned off — and that an “important service is off” card has an Actions button you can use to turn that feature back on. That card alone fixes the problem for some readers, so check it before you change anything else.

Why won’t Windows Defender turn on?
There are only a few reasons Defender refuses to stay on, and each one has a different fix — which is why guessing wastes time. The most common reason is another antivirus program. Windows only lets one antivirus handle real-time protection, so when a second antivirus is installed, Defender steps aside and its switches go gray or off. The next most common reason is damage: if the Windows files Defender depends on are corrupt, the service cannot start at all. A third reason is simpler than it sounds — the switch was turned off and never turned back on, sometimes by a program, sometimes by malware, sometimes by the person using the computer. And on a work or school computer, the setting may be managed by the organization that owns it.
The table below matches what you see on screen to the likely cause, so you can skip straight to the right step.
| What you see | What it usually means | Go to |
|---|---|---|
| “You’re using other antivirus providers” | Another antivirus is installed and is handling protection | Step 2 — remove the old antivirus |
| “Virus & threat protection is off” or the real-time protection switch is off | The switch was turned off, or the service stopped | Step 3 — turn real-time protection back on |
| An “important service is off” card in Protection history | A Defender service stopped | Step 1 — use the card’s Actions button |
| The switch turns itself off again seconds after you turn it on | Damaged Windows files, or malware switching it off | Steps 4 and 5 — SFC, DISM, then an offline scan |
| The switches are grayed out and cannot be clicked | The setting is managed by another program or by your organization | Step 2 first; if it is a work or school PC, ask IT |
Is my computer unprotected while Defender is off?
Yes. Real-time protection is the part of Defender that checks files as they arrive — downloads, attachments, and programs you run. With it off, nothing checks anything, and a single bad download can install malware with no warning at all. That is why the order of this guide matters: do the quick checks first, and stay away from downloads and attachments until protection is back on.
While you fix it, follow three rules. First, do not download anything new, including the “free antivirus” or “PC fixer” tools that search results will offer you — those are a common way malware gets installed, and you have no protection running to catch them. Second, do not open email attachments or click links in unexpected emails. If you already clicked a link before you noticed Defender was off, here is what to do after clicking a phishing link. Third, do not plug in a USB drive you do not trust. Normal browsing of sites you already know is low risk for a short time, but treat the computer as unguarded until the switches are on again and stay on.
What should I check first when Defender won’t turn on?
Step 1: Look at Protection history before you change anything. Open the Windows Security app — press the Windows key, type “Windows Security,” and open it. Select Protection history. Microsoft’s support page explains that protection history keeps events for two weeks only, so an older problem may already be gone from the list, but a current one will be there. Look for a card that says an important service is off. Select the card to expand it, and under Actions you can turn that feature back on. That is the whole fix when a service simply stopped.
Two details from the same Microsoft page are worth knowing. First, events are color-coded: red means a serious item that needs immediate attention, and yellow means something that is not urgent but should be checked when you can. Second, you must have administrator privileges on the device to review the details of threats in protection history. If you are signed in with a standard account, switch to an administrator account before you start — the repair steps later in this guide need one too.
Could another antivirus be blocking Defender?
Step 2: Check for a leftover antivirus and remove it. This is the cause most people miss, because the old antivirus is often a trial that came with the computer and was never opened. Open Settings, then Apps, then Installed apps, and look through the list for any antivirus name: Norton, McAfee, Avast, AVG, Bitdefender, Kaspersky, or anything with “antivirus,” “security,” or “protection” in the name. If you find one, uninstall it from that same list, restart the computer, and then open Windows Security again. In most cases Defender turns itself back on after the restart, because there is no longer a second antivirus for it to step aside for.
Two warnings here. First, only uninstall an antivirus you recognize. If the computer came with one and you still want it, keep it — then Defender staying off is normal, and that antivirus is your protection. Second, if the normal uninstall fails or leaves pieces behind, use the removal tool from that antivirus maker’s own website, never a removal tool from a random download site. A half-removed antivirus can block Defender just as firmly as a whole one.
How do I turn real-time protection back on?
Step 3: Turn the switch on yourself. In the Windows Security app, select Virus & threat protection. Under “Virus & threat protection settings,” select Manage settings, then turn on Real-time protection. Check the other switches on the same screen while you are there — cloud-delivered protection and automatic sample submission should be on as well.
If the switch stays on, you are done — but still read the last section of this guide so it does not happen again. If the switch turns itself off again within seconds, or the page shows an error, do not keep flipping it. That behavior means something is wrong underneath: damaged Windows files, or malware that is switching protection off. Move on to the repair steps below.
What if the switch turns itself off again?
When Defender will not stay on, the next suspect is the Windows installation itself. Defender is part of Windows, so if the system files it depends on are damaged, its service cannot start — and no amount of clicking the switch will fix that. The two repair tools for this are built into Windows by Microsoft: SFC, which checks and repairs protected system files, and DISM, which repairs the Windows image that SFC relies on. Both run from an administrator Command Prompt, both are free, and neither one deletes your files.
How do I repair Windows files with SFC and DISM?
Step 4: Run SFC. Right-click the Start button and select Terminal (Admin), or search for “Command Prompt,” right-click it, and select “Run as administrator.” Type sfc /scannow and press Enter. Microsoft’s documentation says this command “scans the integrity of all protected system files and repairs files with problems when possible,” and that you must be logged on as an administrator to run it. Let it finish — do not close the window while it runs. When it ends, it reports one of three results: it found no integrity violations, it found corrupt files and repaired them, or it found corrupt files but was unable to fix some of them. If it repaired files, restart the computer and check Windows Security. If it could not fix some files, go to step 5 before you check anything.
Step 5: Run DISM, then run SFC again. In the same administrator window, type DISM /Online /Cleanup-Image /RestoreHealth and press Enter. Microsoft’s documentation says this command “scans the image for component store corruption, and then performs repair operations automatically” and that “this operation will take several minutes.” Stay connected to the internet while it runs, because it can fetch fresh copies of damaged files from Windows Update. When it finishes, run sfc /scannow one more time — DISM repairs the image that SFC uses as its source of good files, so SFC often succeeds on the second pass when it failed on the first. Restart the computer, then open Windows Security and check whether real-time protection stays on.
| Step | What it fixes | How long it takes |
|---|---|---|
| 1. Protection history | A service that simply stopped | A few minutes |
| 2. Remove old antivirus | Defender stepping aside for another antivirus | A few minutes, plus a restart |
| 3. Turn real-time protection on | A switch that was turned off | Under a minute |
| 4. SFC scan | Damaged protected system files | Longer than a quick check — let it finish |
| 5. DISM repair, then SFC again | A damaged Windows image that SFC depends on | Several minutes for DISM, then SFC again |
| 6. Offline scan | Malware that switches Defender off | A restart plus the scan itself |
What is a Microsoft Defender offline scan and when should I run one?
Step 6: Run an offline scan if Defender still will not stay on. Some malware survives by turning your protection off from inside Windows — and while Windows is running, that malware can fight back against a normal scan. An offline scan gets around that: it restarts your computer and scans before Windows fully loads, in the Windows Recovery Environment, so the malware cannot hide from it or switch Defender off during the scan.
Save your work first, because the computer will restart. Then open Windows Security, select Virus & threat protection, select Scan options, choose Microsoft Defender Antivirus (offline scan), and select Scan now. The computer restarts and the scan runs. When Windows starts again, open Windows Security and check whether real-time protection is on and stays on. If the scan finds and removes something, that was very likely the cause — and you should also change the passwords of your important accounts from a different, protected device, because malware that could switch off your antivirus may also have been watching what you typed.
The three scan types are easy to mix up, so here is what each one is for.
| Scan type | What it does | When to use it |
|---|---|---|
| Quick scan | Checks the places malware most often hides | Routine checks, or a fast look after something odd happens |
| Full scan | Checks every file and program on the computer | When you want a thorough check and can leave the computer running |
| Microsoft Defender Antivirus (offline scan) | Restarts the PC and scans before Windows fully loads | When Defender will not stay on, or malware keeps coming back |
What if Defender still won’t turn on?
If you have worked through every step above and Defender still will not turn on, stop and think about who else controls this computer. On a work or school computer, the setting may be managed by the organization — in that case the switches can be grayed out no matter what you do, and the right move is to ask the person who manages the computer, not to force the setting. Do not edit the registry or run a downloaded “fixer” to get around it. Those are the two fastest ways to make the problem worse, and fake “Windows repair” tools are a well-known way malware gets installed.
The last resort is a Windows reset: back up your files first, then reset Windows and check Defender on the fresh install. If even that is more than you want to take on, take the computer to a repair shop and tell them exactly what you tried — the steps above, in order — so they do not start from zero and charge you for it.
One more thing to rule out while you are here: a pop-up that claims your protection is off and tells you to call a number or download a tool is a scam, not a warning from Windows. Windows Security shows its warnings inside the Windows Security app, never in a browser pop-up. If you are seeing those pop-ups, here is how to tell a fake infection pop-up from a real one.
How do I keep Defender from turning off again?
Once protection is back on, four habits keep it that way. First, keep Windows Update turned on — Defender’s protection improves with updates, and Windows 10 support ended on October 14, 2025, so if you are still on Windows 10, moving to Windows 11 is the safer long-term choice. Second, never install a second antivirus “just in case” — one antivirus is the design, and a second one will switch Defender off again. Third, when a trial antivirus ends, uninstall it the same week instead of leaving it installed and half-working. Fourth, glance at Protection history once in a while: it keeps two weeks of events, and a stopped service caught early is a one-minute fix instead of an afternoon of repairs.
If you want the bigger picture — whether Defender alone is enough protection once it is running again — read our guide to whether Windows Defender is enough to protect your PC.
How I checked this
Every step in this guide comes from Microsoft’s own documentation, read on November 22, 2026: the Protection History support page, the SFC command reference, and the DISM command reference on Microsoft Learn. The offline scan and the real-time protection toggle path were verified from Microsoft’s Virus & threat protection page on November 20, 2026; Microsoft has since restructured its support site, and those two page addresses no longer open, so the steps are dated honestly here rather than presented as checked today. Nothing in this guide was tested on a live computer by us, and no step here changes the registry or installs a third-party tool.
Sources
Microsoft Support, “Protection History in the Windows Security App” — https://support.microsoft.com/en-us/windows/security/windows-security/protection-history-in-the-windows-security-app — checked November 22, 2026. Microsoft Learn, “sfc” — https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/sfc — checked November 22, 2026. Microsoft Learn, “DISM Overview” — https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/what-is-dism — checked November 22, 2026. Microsoft Learn, “DISM Operating System Package Servicing Command-Line Options” — https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism-operating-system-package-servicing-command-line-options?view=windows-11 — checked November 22, 2026. Microsoft Support, Virus & threat protection page — checked November 20, 2026 (page address no longer opens as of November 22, 2026).
Frequently asked questions
Why does Windows Defender keep turning itself off?
Usually another antivirus is installed, or some Windows files are damaged. Remove the other antivirus and restart, then run SFC and DISM to repair Windows files. If it still turns off, run an offline scan — malware can switch protection off from inside Windows.
Can I use my computer while Defender is off?
You can, but you should not browse, download files, or open email attachments until protection is back on. Fix it first — the steps in this guide take most people under an hour, and a single bad download while unprotected can install malware with no warning.
Will uninstalling my old antivirus turn Defender back on?
In most cases, yes — restart the computer after uninstalling, then open Windows Security and check. If Defender stays off after the restart, work through the repair steps in this guide, starting with SFC.
Is it safe to run SFC and DISM?
Yes. Both are built into Windows by Microsoft. SFC checks protected system files and repairs them when it can, and DISM repairs the Windows image that SFC relies on. Run both from an administrator Command Prompt, let each one finish, and restart when they are done.
What does an offline scan do that a normal scan does not?
An offline scan restarts your computer and scans before Windows fully loads, in the Windows Recovery Environment, so malware that runs inside Windows cannot hide from it or switch Defender off during the scan.
What if the real-time protection switch is grayed out?
The setting is being managed by something else — usually another antivirus, or a work or school policy. Remove the other antivirus first. If it is a work or school computer, ask the person who manages it. Do not edit the registry to force the switch on.
Should I download a tool that claims to fix Defender?
No. The only safe repair tools are the ones built into Windows: SFC, DISM, and the offline scan. “Fixer” tools from search results are a common way malware gets installed, and a legitimate tool never needs to be downloaded to turn Windows Security back on.












