Forum Discussion
Asuka_Okami
Aug 06, 2021Brass Contributor
Issue with Windows Defender on Windows 11
I cannot open any of the settings on windows defender, when i try to it tells me to look for a compatible app in the Microsoft Store. Is this a bug or some other (fixable) issue?
- Aug 07, 2021I had this problem on all machines updated from 19043.1151 to 22000.120.
This command from elevated PowerShell fixed the problem for me, try it and report the results:
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
Jabber00
Feb 15, 2022Copper Contributor
This is the message I receive with admin rights:
Get-AppxPackage : Accesso negato.
Accesso negato.
In riga:1 car:1
+ Get-AppxPackage -allusers *SecHealthUI* | Foreach {Add-AppxPackage -D ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-AppxPackage], UnauthorizedAccessException
+ FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Windows.Appx.PackageManager.Commands.GetApp
xPackageCommand
I already tried similar cmdlets (the one in the previous message), but nothing solved the problem
Get-AppxPackage : Accesso negato.
Accesso negato.
In riga:1 car:1
+ Get-AppxPackage -allusers *SecHealthUI* | Foreach {Add-AppxPackage -D ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-AppxPackage], UnauthorizedAccessException
+ FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Windows.Appx.PackageManager.Commands.GetApp
xPackageCommand
I already tried similar cmdlets (the one in the previous message), but nothing solved the problem
Little_Joe
Feb 16, 2022Bronze Contributor
What about you try to re-enter the following one with admin rights:
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
- Jabber00Feb 16, 2022Copper ContributorLittle_Joe As I said, I already tried every single command in this thread and not only once.
But yesterday there was a new Insider preview update, let's see if anything changes with that command now... no, still unable to open SecHealthUI.- Little_JoeFeb 17, 2022Bronze ContributorThen you have to try to upgrade to latest version of WIP Win11 build.
- Jabber00Feb 17, 2022Copper ContributorI did: it's a fresh new installation and I did an in place upgrade with the last available ISO too (as I said, now the Surface dial settings is broken again, as before the in place upgrade it crashed only when I tried to add a new app).
- SteveF01Feb 16, 2022Brass ContributorHad the same issues many many months ago - and must have tried 25-30times with limited computer IT experience & computers with low specs but it's worth perseverance!
You must be using Powershell & you must be using administrator permissions !
Enter:-(Copy&Paste) the following:-
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
It will eventually work 🙂 Good Luck 🙂- Jabber00Feb 16, 2022Copper Contributor
SteveF01Did not work for me
I have tried PowerShell, old PowerShell, Windows Terminal PowerShell... but it doesn't work on my system.
I tried an on place reinstall, but nothing (before I could see wheels settings and it crashed only when I tried to add a new app, now it crashes as soon as I open settings section) and I have the Defender problem after a clean installation (it worked with previuos installation, which was an upgrade of a Windows 10 installation)...