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
The Windows 11 fix worked for me, but ONLY when run by the user account that had the problem and first assigning that account to the Administrators group (and subsequently downgrading it back to Users). Other combinations ran (e.g. run by Administrator or by user before assigning as administrator) but failed to correct the problem.