"You'll need a new app to open this windowsdefender link" fix

Anonymous
2022-02-09T15:04:00+00:00

Hi this post is to help people with windows 10 and 11 windows security not working

On windows 11 do this

  1. launch powershell as an admin
  2. Set-ExecutionPolicy Unrestricted
  3. Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
  4. Set-ExecutionPolicy restricted

IGNORE THE ERRORS

on windows 10 do this

  1. launch powershell as an admin}
  2. run get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
  3. if it doesn't work do this
    4) run Add-AppxPackage -Register -DisableDevelopmentMode "C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\AppXManifest.xml"
  4. run get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
Windows for home | Windows 11 | Performance and system failures

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

98 answers

Sort by: Newest
  1. Anonymous
    2022-07-13T17:30:20+00:00

    Hi Ramesh,

    The first query you suggested running on my Windows 11 machine did not provide an output. The second command, however, did:


    PS C:\WINDOWS\system32> add-appxpackage -disabledevelopmentmode -register ((Get-AppxPackage Microsoft.SecHealthUI -allusers).InstallLocation + '\AppxManifest.xml')

    PS C:\WINDOWS\system32> get-appxpackage *SecHealthUI* -allusers

    Name : Microsoft.Windows.SecHealthUI

    Publisher : CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US

    Architecture : Neutral

    ResourceId :

    Version : 10.0.18362.449

    PackageFullName : Microsoft.Windows.SecHealthUI_10.0.18362.449_neutral__cw5n1h2txyewy

    InstallLocation :

    IsFramework : False

    PackageFamilyName : Microsoft.Windows.SecHealthUI_cw5n1h2txyewy

    PublisherId : cw5n1h2txyewy

    PackageUserInformation : {GUID [GUID]: Installed(pending removal),

                         GUID [DOMAIN\Username]: Installed(pending removal)} 
    

    IsResourcePackage : False

    IsBundle : False

    IsDevelopmentMode : False

    NonRemovable : True

    IsPartiallyStaged : False

    SignatureKind : System

    Status : Ok

    Name : Microsoft.Windows.SecHealthUI

    Publisher : CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US

    Architecture : Neutral

    ResourceId :

    Version : 10.0.19041.1023

    PackageFullName : Microsoft.Windows.SecHealthUI_10.0.19041.1023_neutral__cw5n1h2txyewy

    InstallLocation :

    IsFramework : False

    PackageFamilyName : Microsoft.Windows.SecHealthUI_cw5n1h2txyewy

    PublisherId : cw5n1h2txyewy

    PackageUserInformation : {GUID [DOMAIN\Username]: Installed(pending removal)}

    IsResourcePackage : False

    IsBundle : False

    IsDevelopmentMode : False

    NonRemovable : True

    IsPartiallyStaged : False

    SignatureKind : System

    Status : Ok

    Name : Microsoft.Windows.SecHealthUI

    Publisher : CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US

    Architecture : Neutral

    ResourceId :

    Version : 10.0.19041.1682

    PackageFullName : Microsoft.Windows.SecHealthUI_10.0.19041.1682_neutral__cw5n1h2txyewy

    InstallLocation :

    IsFramework : False

    PackageFamilyName : Microsoft.Windows.SecHealthUI_cw5n1h2txyewy

    PublisherId : cw5n1h2txyewy

    PackageUserInformation : {GUID [GUID]: Staged}

    IsResourcePackage : False

    IsBundle : False

    IsDevelopmentMode : False

    NonRemovable : True

    IsPartiallyStaged : False

    SignatureKind : System

    Status : Ok

    Name : Microsoft.SecHealthUI

    Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US

    Architecture : Neutral

    ResourceId :

    Version : 1000.22000.1.0

    PackageFullName : Microsoft.SecHealthUI_1000.22000.1.0_neutral__8wekyb3d8bbwe

    InstallLocation : C:\Program Files\WindowsApps\Microsoft.SecHealthUI_1000.22000.1.0_neutral__8wekyb3d8bbwe

    IsFramework : False

    PackageFamilyName : Microsoft.SecHealthUI_8wekyb3d8bbwe

    PublisherId : 8wekyb3d8bbwe

    PackageUserInformation : {GUID [DOMAIN\Username]: Installed}

    IsResourcePackage : False

    IsBundle : False

    IsDevelopmentMode : False

    NonRemovable : True

    Dependencies : {Microsoft.VCLibs.140.00_14.0.30704.0_x64__8wekyb3d8bbwe, Microsoft.UI.Xaml.2.4_2.42007.9001.0_x64__8wekyb3d8bbwe}

    IsPartiallyStaged : False

    SignatureKind : Store

    Status : Ok

    PS C:\WINDOWS\system32>

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2022-07-13T13:55:48+00:00

    This worked after updating my pc to windows 11! Thank you so much!

    Was this answer helpful?

    0 comments No comments
  3. Ramesh 181.2K Reputation points Volunteer Moderator
    2022-07-13T03:11:52+00:00

    Hi,

    Can you post the screenshot of the previous command's output window?

    Also, post the output of this command:

    get-appxpackage *SecHealthUI* -allusers

    Regards,

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2022-07-12T18:53:29+00:00

    Hi Ramesh,

    Sadly, that command did not work in an elevated PowerShell, either. Is there an update that has resolved this? I'm currently running OS build 22000.739.

    Was this answer helpful?

    0 comments No comments
  5. Ramesh 181.2K Reputation points Volunteer Moderator
    2022-07-12T18:21:02+00:00

    The following path applies to Windows 10 only.

    C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy

    SecHealthUI package is stored in a different folder on Windows 11. For Windows 11, you use the following command:

    add-appxpackage -disabledevelopmentmode -register ((Get-AppxPackage Microsoft.SecHealthUI -allusers).InstallLocation + '\AppxManifest.xml')
    

    Was this answer helpful?

    0 comments No comments