How can I reinstall Windows security?

Anonymous
2023-10-27T06:24:04+00:00

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.

0 comments No comments

34 answers

Sort by: Most helpful
  1. Anonymous
    2023-10-31T06:08:17+00:00

    the screen like that

    Was this answer helpful?

    40+ people found this answer helpful.
    0 comments No comments
  2. Ramesh 181.1K Reputation points Volunteer Moderator
    2023-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:

    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)

    Was this answer helpful?

    10+ people found this answer helpful.
    0 comments No comments
  3. Ramesh 181.1K Reputation points Volunteer Moderator
    2024-01-13T06:04:04+00:00

    Was this answer helpful?

    10+ people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2023-10-31T06:08:42+00:00

    screen ilke that

    Was this answer helpful?

    10+ people found this answer helpful.
    0 comments No comments
  5. 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:

    1. Open the Settings app directly or by pressing the Windows key + I.
    2. Navigate to "Apps" in the left pane and select "Apps & Features" on the right.
    3. Locate "Windows Security" and click on the three dots next to it.
    4. Choose "Advanced options" from the context menu.
    5. 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.

    1. Begin by opening PowerShell as an administrator.
    2. Run the following command:

    Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage

    1. Wait for the command to finish running.
    2. 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:

    1. Open PowerShell as an administrator.
    2. Run the following command:

    PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage WindowsDefender).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register -ForceApplicationShutdown $manifest}

    1. Wait for the command to finish running.
    2. 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.

    Was this answer helpful?

    10 people found this answer helpful.
    0 comments No comments