"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: Oldest
  1. Anonymous
    2022-07-07T09:50:50+00:00

    Very Good

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2022-07-07T21:20:21+00:00

    it works !

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2022-07-08T21:01:43+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

    Does the Windows 11 PowerShell command ignore the errors or actually resolve the issue? I'm running Windows 11 and seem to be missing the C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\AppXManifest.xml folder / file that I believe Windows Security relies on. So would this restore that folder / file?

    Was this answer helpful?

    0 comments No comments
  4. 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
  5. 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