"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. Ramesh 181.2K Reputation points Volunteer Moderator
    2022-07-13T18:58:20+00:00

    Hi I_Sort_Of_Know_IT,

    Do you mean you ran the command I gave in the last reply and still doesn't work? Did you get any error message when running the command in elevated PS?

    Reposting the command-line:

    Add-AppxPackage -Register -DisableDevelopmentMode "C:\Program Files\WindowsApps\Microsoft.SecHealthUI_1000.22000.1.0_neutral__8wekyb3d8bbwe\AppXManifest.xml" 
    

    Note that it's different from the 1st command.

    Was this answer helpful?

    0 comments No comments
  2. Ramesh 181.2K Reputation points Volunteer Moderator
    2022-07-15T14:38:36+00:00

    Hi,

    The WindowsApps folder is a highly protected (ACLs) folder, and you can't browse it via File Explorer or Command Prompt. However, you can access its subfolders (e.g., C:\Program Files\WindowsApps\Microsoft.SecHealthUI_1000.22000.1.0_neutral__8wekyb3d8bbwe) directly by typing the entire path in the Run dialog.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2022-07-16T12:05:47+00:00

    Thank you, this resolved the issue for me.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2022-07-16T15:53:55+00:00

    For Windows 11, this worked for me.

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

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  5. Anonymous
    2022-07-19T19:05:41+00:00

    Impressive how broken win11 is really, even fedora is easier to use as a daily driver at this point.

    Also this fix doesn't work for me.

    Was this answer helpful?

    0 comments No comments