Forum Discussion
Softiee
Aug 16, 2021Copper Contributor
Windows 11 Windows Defender Issue
Hi I have an issue with Defender where in every time I open it, it routes me to "You need a new app to open this" I have tried entering the "Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset...
mfdesign
Sep 19, 2021Brass Contributor
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”}
tomsource
Mar 13, 2022Copper Contributor
Thanks for your solution. It has worked for me as well as many others.
Here is a way to limit its scope (and prevent tons of PowerShell messages):
Get-AppxPackage -User <COMPUTERNAME\ADMINUSERNAME> -Name "Microsoft.SecHealthUI" | Foreach [...]
([...] to indicate that the Foreach bit remains as before)
I had been able to reset the local admin account using the oft-described Reset-AppxPackage PowerShell one-liner. For my standard user, this did not work because the package was not registered.
The adapted solution gets the missing package from the admin user and registers it to the standard user.
In order for this to work, it may be necessary temporarily to upgrade the standard account to an admin account so that PowerShell (Admin) can be run under this account.
Here is a way to limit its scope (and prevent tons of PowerShell messages):
Get-AppxPackage -User <COMPUTERNAME\ADMINUSERNAME> -Name "Microsoft.SecHealthUI" | Foreach [...]
([...] to indicate that the Foreach bit remains as before)
I had been able to reset the local admin account using the oft-described Reset-AppxPackage PowerShell one-liner. For my standard user, this did not work because the package was not registered.
The adapted solution gets the missing package from the admin user and registers it to the standard user.
In order for this to work, it may be necessary temporarily to upgrade the standard account to an admin account so that PowerShell (Admin) can be run under this account.