Forum Discussion
Issue with Windows Defender on Windows 11
- 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
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