How to Completely Reinstall the Windows 11 ‘Windows Security’ App (Fix Blank Defender Screen)

The “Windows Security” app is the central dashboard in Windows 11 for managing Microsoft Defender antivirus scans, firewall rules, and device health. If your PC survives a malware infection, or if a third-party antivirus program (like Norton or McAfee) uninstalls incorrectly, the core files of the Windows Security app can become severely damaged.

When this happens, clicking the shield icon in your taskbar will open a completely blank white window, or the app will instantly crash and throw a generic file system error. Because it is a protected system application, you cannot uninstall it via the Control Panel. Instead, you must use an administrative PowerShell command to forcefully rebuild and reinstall the Windows Security dashboard from the system image.

How to Completely Reinstall the Windows Security App

You must execute a specific AppxPackage command to restore the corrupted Microsoft Defender UI.

  1. Click the Start button and type PowerShell.
  2. Right-click on the “Windows PowerShell” result and select Run as administrator. (Click “Yes” on the UAC prompt).
  3. You must now copy and paste the following massive command exactly as written. This command tells Windows to find the specific SecHealthUI (Security Health User Interface) package and reinstall it: Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
  4. Press Enter. A brief progress bar will flash across the top of the PowerShell window.
  5. If the Reset-AppxPackage command fails or returns an error, you must use a slightly older, more aggressive command. Copy and paste this alternative command instead: Add-AppxPackage -Register -DisableDevelopmentMode "C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\AppXManifest.xml"
  6. Press Enter.

Close the PowerShell window. For the deep UI changes to take effect and for the background Defender services to hook back into the dashboard, you must restart your computer. When Windows 11 boots back up, click the shield icon in your taskbar. The Windows Security app will open instantly, displaying all of your antivirus and firewall settings correctly.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.