Very Good
"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: Oldest
-
Anonymous
2022-07-07T09:50:50+00:00 -
Anonymous
2022-07-07T21:20:21+00:00 it works !
-
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
- 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
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?
-
Ramesh 181.2K Reputation points Volunteer Moderator2022-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') -
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.