Forum Discussion
Windows 11 Windows Defender Issue
JacobQuiroz hi i did it, run as admin but still getting the "Reset-AppxPackage : Package was not found.
Windows cannot remove Microsoft.SecHealthUI_1000.22000.1.0_neutral__8wekyb3d8bbwe because the current user does not
have that package installed. Use Get-AppxPackage to see the list of packages installed.
At line:1 char:51
+ get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Reset-AppxPackage], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.Windows.Appx.PackageManager.Comman
ds.ResetAppxPackageCommand" Error
Softiee not sure if you are still looking for a solution but this worked for me :
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
- Mohi8Jun 01, 2023Copper ContributorThank you for this beautiful for each. it saved me and fixed the problem.
- merome13Jun 24, 2022Copper ContributorDie einzige Lösung, die bei mir funktioniert hat.
- PieterdcoetzeeJun 05, 2022Copper ContributorThanks mfdesign. This solution worked for me.
- bingduisMay 12, 2022Copper ContributorThis really works! Thank you!
- shadymac87Apr 30, 2022Copper ContributorJust tried this method in April 2022. Worked like a charm. Thanks! The other method shown earlier in the post did not work on my system.
- AdasskoApr 13, 2022Copper ContributorThank you, the solution with Add-AppxPackage was helpful for me but not complete.
For me the entire folder C:\Program Files\WindowsApps\Microsoft.SecHealthUI_1000.22000.1.0_neutral__8wekyb3d8bbwe was missing.
I recovered it from windows iso but it then wasn't on the list. I registered it using
Add-AppxPackage -DisableDevelopmentMode -Register “C:\Program Files\WindowsApps\Microsoft.SecHealthUI_1000.22000.1.0_neutral__8wekyb3d8bbwe\AppXManifest.xml”
but that in turn put it into status:
Status : Modified, NeedsRemediation
and wouldn't let me run it.
I tried creating new profile, repair installation and multiple troubleshooters but it all didn't work. Finally I just removed the "NeedsRemediation" flag in the registry.
Just open regedit and go to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModel\StateChange\PackageList
then remove Microsoft.SecHealthUI_8wekyb3d8bbwe key from the list.
Took me couple of hours but it finally works. - huami1214Apr 10, 2022Copper ContributorThank you. Many online methods useless. You method are useful. Thanks