Forum Discussion
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?
- I 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
446 Replies
- Danielgreen95yCopper ContributorMay be the issue could be a bug, unused settings, or security applications that do not work together. Try running the troubleshooter, restarting the app, updating Windows, and reviewing the security service settings. If these do not assist, seek for specific error reports.
- Hammad07Copper ContributorYou may be experiencing an issue with Windows Defender on Windows 11 where you can't access the settings and are prompted to find a compatible app in the Microsoft Store. Here are some quick steps to try and resolve it:
Check for Updates: Make sure your Windows 11 is up to date.
Run Troubleshooter: Use the Windows Defender Troubleshooter to automatically identify and fix issues.
Reset Settings: Try resetting Windows Defender settings to defaults using PowerShell.
Check for Third-Party Software: Ensure third-party antivirus software isn't conflicting with Windows Defender.
Create a New User Profile: Create a new user profile to see if the issue is user-specific.
Contact Microsoft Support: If problems persist, reach out to Microsoft Support for further assistance.- Erich_Walrath2020Copper Contributor"Contact Microsoft Support: If problems persist, reach out to Microsoft Support for further assistance."
Ha-ha ha ha ha ha ha ha ha ha! ROFL!
- SandeepY08Copper Contributor
(copy the exact command if not error 87 will appear as its due to lack of space in the command)
in search bar type
command prompt
and then right click on it and select run as admin
Type the following command and press Enter:
DISM /Online /Cleanup-Image /CheckHealth
after the above process is completed copy paste the below command and press enter
DISM /Online /Cleanup-Image /ScanHealth
after the above process is completed copy paste the below command and press enter
DISM /Online /Cleanup-Image /RestoreHealth
and restart your computer and check.
let me know if it works for you. - ashishpatel26Copper ContributorI am facing the same issue windows Defender is not working and find the same issue.
- Steve WhitcherBronze Contributor
I'm running into this issue on Win 11 build 25182 after performing a windows reset. This is particularly a problem for me because this is a company computer, managed by Intune. Company Portal reports that the computer is unable to access company resources because I need to enable real time scanning and enroll in Microsoft Defender for Endpoint. Both of those should be handled by the management, so it seems that the missing SecHealthUI app is either preventing Intune from configuring the features or possibly the features are enabled but Intune can't tell because of the missing app.
Possibly relevant, after the windows reset I found some McAfee software installed along with other apps from Dell. I uninstalled the Mcafee software, but the defender UI is still not available.
In my case, Microsoft.SecHealthUI isn't found under the WindowsApps directory, but in a subfolder 'DeletedAllUserPackages'. I was able to fix this by copying the folder 'C:\Program Files\WindowsApps\DeletedAllUserPackages\Microsoft.SecHealthUI_1000.25182.1000.0_x64__8wekyb3d8bbwe' and pasting it into ''C:\Program Files\WindowsApps\', then running the commands suggested previously:add-appxpackage -DisableDevelopmentMode -register "C:\Program Files\WindowsApps\Microsoft.SecHealthUI_1000.25182.1000.0_x64__8wekyb3d8bbwe" get-appxpackage -allusers microsoft.sechealthui | Reset-AppxPackage
- Aoshi101Copper Contributor
Steve Whitcher This worked for me. However, I needed to make a slight adjustment to the commands noted. The first command was missing the call to the AppxManifest.xml file. Without that, it spits out an error every time.
Here's the full step-by-step:
1) Navigate to the following path: C:\Program Files\WindowsApps\DeletedAllUserPackages\Microsoft.SecHealthUI_1000.25182.1000.0_x64__8wekyb3d8bbwe'
Note: You will need to grant yourself ownership of the WindowsApp and DeletedAllUserPackages folders to access them.
2) Copy the Microsoft.SecHealthUI_1000.25182.1000.0_x64__8wekyb3d8bbwe folder to "C:\Program Files\WindowsApp".
Note: The folder name may be slightly different based upon the version of the SecHealthUI app and Windows OS version.
3) After the folder is copied, open an elevated Powershell (run as administrator) and enter the commands below.
add-appxpackage -DisableDevelopmentMode -register "C:\Program Files\WindowsApps\Microsoft.SecHealthUI_1000.25182.1000.0_x64__8wekyb3d8bbwe\AppxManifest.xml" get-appxpackage -allusers microsoft.sechealthui | Reset-AppxPackage
Once completed, you should be able to open the Windows Defender Security application with no errors.
- James_CommodoreCopper ContributorFound the answer to my question - https://answers.microsoft.com/en-us/windows/forum/all/restore-windowsapps-permissionss-to/464e65c1-6690-493b-8cf6-c85a5ac5468a#:~:text=1%20Open%20the%20File%20Explorer.%202%20Browse%20to,account%20and%20click%20Check%20Names%3A%20NTService%5CTrustedInstaller.%20More%20items
- _L_E_G_E_N_D_Copper Contributor
- risshabCopper Contributor
Easy fix Asuka_Okami
open PowerShell in admin mode then type
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
Then Enter
Congrats its been fixed.
- StraightArrow33Copper ContributorLiterally 30 seconds max to fix. After hitting enter with the above copied and pasted comment I was waiting for something else to happen. After a few minutes of staring at the screen I decided to open Windows Defender. All Windows Defender apps are now working and I can access them. MS needs to put this on the very first page. Not several pages deep! Thank you for the "fix!"
- CaponULTRACopper Contributori have the same problem
- fawadtariqCopper Contributor
Issue seems to exist to this date (30th April 2022) when a you upgrade from win10 to win11.
The user (login user) you used to do this might not work with Defender as described in OP.
If you are in a fresh install, the quickest and most painless way to do it is create a new user, this user should be able to open the defender flawlessly. Then later it is your discretion whether to keep, move data or delete the original one.
At least this is what happened with me , I saw user related exception in powershell from mentioned solution so It moved to me test it with a new fresh user, I created a new user and it worked!! - Jabber00Copper Contributor
After a looooot of time, I think I solved this bug.
As I said before, none of powershell command helped in my case, not the on place reinstall.
Today I found a registry key, i.e.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModel\StateChange\PackageList\Microsoft.SecHealthUI_1000.22000.1.0_neutral__8wekyb3d8bbwe\PackageStatus
which was set to 2 (as far as I know, this means the package needs to be reinstalled from the store).
I set it to 0 and now Windows Defender starts and there is no more the error "app not found".
Hopefully this can help other with this tediuos problem.