Thank you, this resolved the issue for me.
"You'll need a new app to open this windowsdefender link" fix
Hi this post is to help people with windows 10 and 11 windows security not working
On windows 11 do this
- launch powershell as an admin
- Set-ExecutionPolicy Unrestricted
- Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
- Set-ExecutionPolicy restricted
IGNORE THE ERRORS
on windows 10 do this
- launch powershell as an admin}
- run get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
- if it doesn't work do this
4) run Add-AppxPackage -Register -DisableDevelopmentMode "C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\AppXManifest.xml" - 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.
98 answers
Sort by: Newest
-
Anonymous
2022-07-16T12:05:47+00:00 -
Ramesh 181.2K Reputation points Volunteer Moderator2022-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.
-
Ramesh 181.2K Reputation points Volunteer Moderator2022-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.
-
Anonymous
2022-07-13T18:40:56+00:00 Hi Ramesh,
Sadly, I don't have access, even with my elevated credentials, to view the contents of the C:\Program Files\WindowsApps folder, but I can confirm that I am still receiving the original error when attempting to open the Windows Security dashboard: "You'll need a new app to open this windowsdefender link".
-
Ramesh 181.2K Reputation points Volunteer Moderator2022-07-13T17:52:01+00:00 Hi,
The package seems to be installed for one of the users (don't know which one). Can you try the following command now:
Add-AppxPackage -Register -DisableDevelopmentMode "C:\Program Files\WindowsApps\Microsoft.SecHealthUI_1000.22000.1.0_neutral__8wekyb3d8bbwe\AppXManifest.xml"