How to Reinstall Windows Defender on Windows 11
In this article
Yes, you can reinstall Windows Defender (Microsoft Defender Antivirus) on Windows 11. This process restores the built-in security suite if it has been disabled by group policy, corrupted system files, or third-party antivirus interference. The most reliable method involves using PowerShell commands to reset the service and clear any registry entries that prevent it from running.
What You'll Need
- A Windows 11 PC with administrator privileges.
- Access to an elevated Command Prompt or PowerShell window.
- No active third-party antivirus software installed (if one is present, uninstall it first).
Step-by-Step
- Uninstall Third-Party Antivirus Software: If you have another antivirus program installed, Windows Defender will remain disabled automatically. Go to Settings > Apps > Installed apps, find your third-party security software, and select Uninstall. Restart your computer after removal.
- Open PowerShell as Administrator: Click the Start button, type "PowerShell" in the search bar, right-click the "Windows PowerShell" result, and select "Run as administrator." If prompted by User Account Control, click Yes.
- Check Current Status: In the PowerShell window, type
Get-MpComputerStatusand press Enter. If the output showsAntivirusEnabled : False, proceed to the next steps. If it is true, Defender is already active. - Reset Group Policy Settings: Sometimes, local group policies block Defender. Type the following command exactly as shown and press Enter:
Set-MpPreference -DisableRealtimeMonitoring $false
- Re-register Defender via PowerShell: To ensure all components are correctly linked, run this command:
Add-AppxPackage -Register "C:\Program Files\Windows Defender\Microsoft.Windows.Antimalware_*.appxmanifest"
Note: You may need to adjust the path slightly depending on your exact build, but typically, simply restarting the service is sufficient for most users. A more universal fix is to restart the service directly. - Restart the Defender Service: Type the following command to stop and then start the core service:
net stop WinDefend net start WinDefend
You may receive a warning about dependent services; type Y to confirm. - Verify Installation: Open Settings > Privacy & security > Windows Security > Virus & threat protection. Ensure that Real-time protection is turned On. If it switches back off immediately, there may be a deeper registry issue.
Common Mistakes
One of the most frequent errors is attempting to reinstall Defender while a third-party antivirus is still active. Windows 11 is designed to allow only one real-time antivirus engine at a time. If you do not fully remove the competitor software, Defender will remain blocked regardless of your actions. Another mistake is using non-administrator accounts to run these commands, which results in permission denied errors. Always ensure you are running the terminal with elevated privileges.
Tips
If you recently updated Windows 11 and Defender disappeared, it might be a temporary glitch. A simple system restart often resolves service conflicts without needing complex commands. Additionally, keep your Windows Update settings enabled. Microsoft frequently patches security vulnerabilities in Defender through cumulative updates. If you are managing multiple PCs, consider using Microsoft Intune or Group Policy Management Console (GPMC) for enterprise environments rather than manual PowerShell tweaks on each machine.
Troubleshooting
If the above steps do not restore Defender, try the System File Checker tool. Open Command Prompt as administrator and type sfc /scannow. This scans for corrupted system files that might be preventing Defender from loading. Wait for the process to complete and follow any on-screen repair instructions. If SFC fails to fix the issue, run DISM /Online /Cleanup-Image /RestoreHealth to repair the Windows image. Finally, check the Registry Editor (regedit) for keys under HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender. If you see a DWORD value named DisableAntiSpyware set to 1, delete it. Note that modifying the registry carries risks; back up your registry before making changes.
Frequently Asked Questions
Can I install Windows Defender manually?
No. Windows Defender is integrated into the Windows 11 operating system. It cannot be downloaded as a standalone installer from the web. It must be restored through system settings or PowerShell commands.
Why does my antivirus keep turning off?
This usually happens because another antivirus program is installed, or malware has modified your group policies. Remove any competing security software and check for malicious registry edits.
Is it safe to use PowerShell for this?
Yes, provided you use the correct commands. The commands listed here are standard Microsoft utilities for managing antivirus preferences and services. Avoid copying random scripts from untrusted sources.
Will this delete my files?
No. Reinstalling or resetting Windows Defender does not affect your personal data, documents, or applications. It only resets the security software configuration.
What if I don't have admin rights?
You cannot reinstall or enable Defender without administrator privileges. Contact your IT department or system administrator if you are on a work or school device.
Does Windows 11 Home support these steps?
Yes. These steps apply to both Windows 11 Home and Pro editions. The core Defender service is identical across both versions.