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
- Aoshi101Nov 20, 2022Copper 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_CommodoreFeb 02, 2024Copper 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
- James_CommodoreFeb 02, 2024Copper Contributor
Thank you, I believe taking ownership of those folders helped me fix my issue. I forgot to note who the default owner of these folders was. Are you able to tell me how to restore the default ownership?