sodcalculator

10 Tech How-To

Fix Windows Security Not Working in Windows 11

Guide 10-44667 · Updated · Step by step

If Windows Security (also called Windows Defender) is not working on your Windows 11 PC—showing a blank page, error code, or refusing to open—the fix usually involves resetting the app, repairing corrupted system files, or adjusting group policy settings. Below are step-by-step solutions to restore it, plus background on why these problems happen.

Why Windows Security Fails

Windows Security is a built-in antivirus and system health dashboard. It can stop working due to a corrupted app package, a pending Windows update, interference from third-party security software, or misconfigured group policies. Sometimes a simple restart resolves it, but persistent issues usually trace back to one of these causes.

Fix 1: Restart the App and Check for Updates

Start with the easiest steps—they often solve the problem without deeper changes.

  1. Close Windows Security completely (right-click the Start button, choose Task Manager, find “Windows Security,” and click End task).
  2. Open the Microsoft Store, click Library in the bottom-left, then click Get updates to install any pending updates for Windows Security.
  3. Go to Settings > Windows Update and click Check for updates. Install all available updates and restart your PC.

If the app still won’t open, move to the next fix.

Fix 2: Reset Windows Security Using PowerShell

Resetting the app re-registers its files and clears corrupted data. This is the most common fix for a blank or unresponsive Windows Security window.

  1. Right-click the Start button and select Terminal (Admin) or Windows PowerShell (Admin).
  2. Copy and paste this command, then press Enter:
    Get-AppxPackage Microsoft.SecHealthUI | Reset-AppxPackage
  3. Wait for the command to finish (it may take a minute).
  4. Restart your PC and try opening Windows Security again.

If you get an error saying the package isn’t found, try the next command instead:

Get-AppxPackage *WindowsSecurity* | Reset-AppxPackage

Fix 3: Repair System Files with SFC and DISM

Corrupted system files can break Windows Security. The System File Checker (SFC) and Deployment Imaging Service and Management Tool (DISM) scan and repair them.

  1. Open Terminal (Admin) as above.
  2. Run sfc /scannow and wait for the scan to complete. If it finds issues, it will try to repair them automatically.
  3. If SFC doesn’t fix the problem, run these DISM commands one by one:
    DISM /Online /Cleanup-Image /CheckHealth
    DISM /Online /Cleanup-Image /ScanHealth
    DISM /Online /Cleanup-Image /RestoreHealth
  4. Restart your PC after the repairs finish.

Fix 4: Check Group Policy and Registry Settings

If Windows Security is disabled by a policy, it won’t open or may show a “disabled by group policy” message. This can happen if you or an organization changed settings, or if a third-party tool disabled it.

  1. Press Win + R, type gpedit.msc, and press Enter. (If you have Windows Home, skip this method and use the registry below.)
  2. Navigate to Computer Configuration > Administrative Templates > Windows Components > Windows Security.
  3. Double-click Turn off Windows Security (or similar). Set it to Not Configured and click OK.
  4. Also check Windows Defender Antivirus under the same path and ensure “Turn off Windows Defender Antivirus” is Not Configured.

If you don’t have Group Policy Editor, use the Registry Editor:

  1. Press Win + R, type regedit, and press Enter.
  2. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender.
  3. If you see a value named DisableAntiSpyware, set its data to 0 or delete it.
  4. Restart your PC.

Fix 5: Re-register Windows Security with PowerShell

If resetting didn’t work, re-registering the entire app can help. This reinstalls the app’s manifest without losing your settings.

  1. Open Terminal (Admin).
  2. Run this command:
    Get-AppxPackage -AllUsers Microsoft.SecHealthUI | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
  3. Restart your PC.

Fix 6: Check for Third-Party Antivirus Conflicts

Sometimes another antivirus program (like McAfee, Norton, or Avast) disables Windows Security to avoid conflicts. If you have one installed, open its settings and look for an option to “enable” or “allow” Windows Security. Alternatively, uninstall the third-party antivirus completely, then restart. Windows Security should automatically re-enable itself.

If you want to keep the third-party program, you’ll need to use it for real-time protection; Windows Security will remain off. That’s normal and not a bug.

Frequently Asked Questions

Why does Windows Security show a blank page?

A blank page usually means the app’s UI failed to load—often due to a corrupted app package or a pending update. Resetting the app with the PowerShell command in Fix 2 typically resolves it.

Can I reinstall Windows Security from the Microsoft Store?

Yes. Search for “Windows Security” in the Microsoft Store, click the three-dot menu, and choose “Update” or “Install.” If it’s already installed, you’ll see an “Update” button. If not, you can install it directly from the Store.

Will resetting Windows Security delete my antivirus settings?

No. Resetting the app only re-registers its files; your protection history, exclusions, and settings are stored separately and remain intact. However, if you reset the entire Windows Security app (via Settings > Apps), you might lose some preferences.

Why is Windows Security turned off and can’t be turned on?

This usually happens when another antivirus is active. Open the third-party program and disable its “real-time protection” or uninstall it. If it’s a group policy issue, use Fix 4 to re-enable it.

Does Windows Security work on Windows 11 Home?

Yes. Windows Security is built into all editions of Windows 11, including Home. The Group Policy Editor isn’t available on Home, but you can use the Registry method or the PowerShell fixes.

What if none of these fixes work?

If the problem persists, try performing a Windows repair installation using the “Reset this PC” option (keep your files), or contact Microsoft Support. Also ensure your PC has the latest Windows updates, as Microsoft frequently patches Windows Security issues.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →