the screen like that
How can I reinstall Windows security?
Because of window security, I open it, but the window security completely blecks and nothing shows.
Windows for home | Windows 11 | Security and privacy
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
34 answers
Sort by: Most helpful
-
Anonymous
2023-10-31T06:08:17+00:00 -
Ramesh 181.1K Reputation points Volunteer Moderator2023-10-27T07:44:43+00:00 From admin PowerShell, run:
add-appxpackage -disabledevelopmentmode -register ((Get-AppxPackage Microsoft.SecHealthUI -allusers).InstallLocation + '\AppxManifest.xml')The above command reinstalls Windows Security.
If that doesn't solve the issue, do the following and upload the respective logs.
Step 1:
- Download Farbar Recovery Scan Tool (FRST64.exe). [See also: Collect Farbar Recovery Scan Tool logs.]
- Rename FRST64.exe to EnglishFRST64.exe.
- Run EnglishFRST64.exe. Don't check or uncheck any options. Click "Scan".
- Upload the two logs, FRST.txt and Addition.txt, to your OneDrive and share the link here.
Step 2:
- Download defender_diag.bat. Right-click on the file, click Properties, Unblock, and OK. Run the batch file as administrator.
(The Batch file queries Defender-related settings/Policies and outputs the results to a log file named defender.log. Upload this log to your OneDrive and share the link here.)
(How-To: Share OneDrive files and folders - Microsoft Support)
-
Ramesh 181.1K Reputation points Volunteer Moderator2024-01-13T06:04:04+00:00 Please try the fix here:
Download SecurityHealthSetup.exe
Ensure you right-click on the file and choose "Run as administrator"
File info:
- SHA256: F3607F433952CB23D9EB0FC5E31FD0C4079CAD3133DC79D149022900D208876C
- Virustotal: https://www.virustotal.com/gui/file/f3607f433952cb23d9eb0fc5e31fd0c4079cad3133dc79d149022900d208876c/detection
-
Anonymous
2023-10-27T08:21:34+00:00 Hello, how are you doing?
Welcome to the Microsoft community!
--
I understand that you're facing difficulties with Windows Security, and I'm here to help you.
To reinstall and repair Windows Security, I recommend considering these three options in the following order:
Resetting Windows Security via Settings in Windows 11:
- Open the Settings app directly or by pressing the Windows key + I.
- Navigate to "Apps" in the left pane and select "Apps & Features" on the right.
- Locate "Windows Security" and click on the three dots next to it.
- Choose "Advanced options" from the context menu.
- Click on the "Reset" option within the "Reset" section of Windows Security.
Resetting Windows Security may help resolve issues with the application. However, be aware that this process will reset Windows Security to its default settings, and you may need to reconfigure it after the reset.
--
Using a PowerShell command:
*Before proceeding with this option, if you are using third-party antivirus or security software, you may need to disable it. Additionally, it's advisable to create a restore point as a precaution.
- Begin by opening PowerShell as an administrator.
- Run the following command:
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
- Wait for the command to finish running.
- To finalize the process, please restart your computer and check if the problem persists.
This command reinstalls the Windows Security user interface app (Microsoft.SecHealthUI) with the "-AllUsers" flag ensuring it's applied to all user accounts.
--
Using a more advanced command:
- Open PowerShell as an administrator.
- Run the following command:
PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage WindowsDefender).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register -ForceApplicationShutdown $manifest}
- Wait for the command to finish running.
- Please restart your computer and check if the problem has been resolved.
The command reinstalls the Windows Defender application and registers it with Windows. It is more effective than other methods because it reinstalls the entire application, including all of its files and components.
--
I hope this helps you.