Fix "You Need a New App to Open Windows Defender" Link
In this article
If you clicked a Windows Security link and got the error "You need a new app to open this windowsdefender link," the fix is usually to re-register the Windows Security app or reset its default handler. This happens when the app’s protocol association (the windowsdefender:// link) gets broken or the app is corrupted. Below are the exact steps to restore it, starting with the simplest fix.
What You'll Need
- Windows 10 or Windows 11 PC
- Administrator account access
- Internet connection (for the optional PowerShell repair via Microsoft Store)
Step-by-Step
- Try the built-in repair first. Open the Start menu, type Windows Security, and press Enter. If it opens normally, the app itself is fine—the issue is just the link association. If it doesn't open, continue to step 2.
- Reset the Windows Security app. Go to Settings > Apps > Installed apps (Windows 11) or Settings > Apps > Apps & features (Windows 10). Scroll to find Windows Security, click the three-dot menu (or the app name), select Advanced options, then click Reset. This will clear the app's data and re-register it. Note: this does not delete your antivirus settings—it resets them to defaults, so you may need to re-enable any custom exclusions or notifications afterward.
- If the reset doesn't help, re-register the app via PowerShell. Right-click the Start button and select Windows PowerShell (Admin) or Terminal (Admin). Copy and paste this command, then press Enter:
Get-AppxPackage Microsoft.Windows.SecHealthUI | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Wait for it to finish. This reinstalls the app's package without losing your files. - Check the default protocol handler. Open Settings > Apps > Default apps. Scroll down and click Choose defaults by protocol. Find WINDOWSDEFENDER in the list. If it shows a blank icon or says "No app is set," click it and select Windows Security. If Windows Security isn't listed, you may need to run the PowerShell command from step 3 first.
- Run the Windows Store Apps troubleshooter. Go to Settings > System > Troubleshoot > Other troubleshooters (Windows 11) or Settings > Update & Security > Troubleshoot > Additional troubleshooters (Windows 10). Find Windows Store Apps, run it, and apply any fixes it suggests.
- Restart your PC. After any of the above steps, restart your computer. Then try clicking the original link again. If it still fails, go to the next section.
Common Mistakes
- Not running PowerShell as Administrator. The re-register command will fail with an access denied error if you don't right-click and choose "Run as administrator."
- Resetting the wrong app. Make sure you select Windows Security, not Windows Defender (which is the older name and may not exist) or Security Center.
- Skipping the protocol check. Even if the app opens manually, the link association might still be broken. Always verify the WINDOWSDEFENDER protocol is set to Windows Security.
- Using an outdated PowerShell command. Some older guides suggest a different command that may not work on newer Windows builds. Use the one provided here, which is current.
Tips
- Keep Windows updated. Microsoft frequently fixes known issues with Windows Security via cumulative updates. Go to Settings > Windows Update and check for updates.
- Use the official Microsoft Store. If you ever need to reinstall Windows Security, it's available as a free app in the Microsoft Store. Search for "Windows Security" and install it from there—this sometimes resolves deeper corruption.
- Create a system restore point before making major changes like resetting the app, so you can revert if something goes wrong.
- If you're on a managed work or school device, these settings may be controlled by your IT department. Contact them before attempting any fixes, as they may have policies that block changes.
Troubleshooting
If the steps above didn't work, try these in order:
- Check if Windows Security is disabled. Open the Start menu, type Services, and press Enter. Scroll to Security Center. Make sure its status is "Running" and startup type is "Automatic." If not, right-click it, select Properties, set startup type to Automatic, click Start, then OK.
- Run SFC and DISM. Open an elevated Command Prompt (right-click Start > Windows Terminal (Admin) or Command Prompt (Admin)). Run
sfc /scannowand wait for it to finish. Then runDISM /Online /Cleanup-Image /RestoreHealth. Restart afterward. - Create a new user profile. If the issue only happens under your account, create a new local user account (Settings > Accounts > Family & other users > Add account) and test the link there. If it works, you can migrate your files.
- Perform a Windows repair install. As a last resort, you can use the "Repair install" option from the Windows Recovery Environment (WinRE) that keeps your files and apps. This is more invasive but often fixes persistent system file corruption. Make sure to back up your important data first.
Frequently Asked Questions
Why does the "windowsdefender://" link fail?
It fails because the Windows Security app is either not properly registered with the operating system, or the protocol association (which tells Windows which app handles that link) is missing or points to a non-existent app.
Will resetting Windows Security delete my antivirus settings?
Yes, it will reset your security settings to defaults. This means custom exclusions, notification preferences, and some protection settings will revert. Your files and personal data are not affected.
Can I just reinstall Windows Security from the Microsoft Store?
Yes, you can search for "Windows Security" in the Microsoft Store and install it. This is a safe alternative to the PowerShell command and often fixes the same issues.
Is this error a sign of malware?
Not necessarily. It's usually just a broken app registration. However, if the error persists after all fixes, run a full scan with Microsoft Defender Offline (available in Windows Security > Virus & threat protection) to rule out malware that may have tampered with the app.
Do I need to be an administrator to fix this?
Yes, the PowerShell command and resetting the app require administrator privileges. If you're using a standard account, you'll need to provide an admin password or ask the administrator to do it.
Will this fix also resolve the "Windows Security is not opening" issue?
Yes, the same steps (especially the PowerShell re-register and reset) typically fix both the link error and the case where Windows Security won't open at all.