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?