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
Rebecca_Harshbarger
Mar 20, 2022Copper Contributor
I had the same problem. I could open Windows Security as my admin user, but not as my unprivileged user. Nothing on this thread fixed it. Here's what worked:
Step 1. While logged into Windows as my regular user, I started PowerShell 7 (x64) in Administrator code and ran these two commands:
Set-ExecutionPolicy Unrestricted
Get-AppxPackage Microsoft.SecHealthUI -AllUsers
The second command showed a bunch of information, including the InstallLocation.
Step 2. I started PowerShell 7 (x64) in regular mode, so that it ran as my regular user. I entered a command like this, where InstallLocation was the value from Step 1, above:
add-appxpackage -disabledevelopmentmode -register ('InstallLocation\AppxManifest.xml')
This was the exact text of my command; yours may vary:
add-appxpackage -disabledevelopmentmode -register ('C:\Program Files\WindowsApps\Microsoft.SecHealthUI_1000.22000.1.0_neutral__8wekyb3d8bbwe\AppxManifest.xml')
That fixed the problem. By the way, once it was fixed, the command "Get-AppxPackage Microsoft.SecHealthUI -AllUsers" showed both my usernames in its PackageUserInformation value.
Step 1. While logged into Windows as my regular user, I started PowerShell 7 (x64) in Administrator code and ran these two commands:
Set-ExecutionPolicy Unrestricted
Get-AppxPackage Microsoft.SecHealthUI -AllUsers
The second command showed a bunch of information, including the InstallLocation.
Step 2. I started PowerShell 7 (x64) in regular mode, so that it ran as my regular user. I entered a command like this, where InstallLocation was the value from Step 1, above:
add-appxpackage -disabledevelopmentmode -register ('InstallLocation\AppxManifest.xml')
This was the exact text of my command; yours may vary:
add-appxpackage -disabledevelopmentmode -register ('C:\Program Files\WindowsApps\Microsoft.SecHealthUI_1000.22000.1.0_neutral__8wekyb3d8bbwe\AppxManifest.xml')
That fixed the problem. By the way, once it was fixed, the command "Get-AppxPackage Microsoft.SecHealthUI -AllUsers" showed both my usernames in its PackageUserInformation value.
hiThereSomeUserHere
Mar 27, 2022Copper Contributor
finally, working solution! it seems like most of users have only one account in their system, root, so they fix it with just one command. for those who have an unprivileged account for the sake of the security, it's a two steps solution. I'm glad I found your answer in the last page of this discussion. I think, it should be more available for people.