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
- tulasinath0118Copper Contributor
the ISSUE IS FIXED i got my windows defender has come back.
i am able to access the windows defender now
just run this command in your windows powershell as administrators.
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
yes, just run the above command once in the power shell and you will get the windows defender back ! enjoy
- SteveJMarrsCopper Contributor
Go to this link https://support.microsoft.com/en-us/topic/use-the-system-file-checker-tool-to-repair-missing-or-corrupted-system-files-79aa86cb-ca52-166a-92a3-966e85d4094ehttps://skateboardsinsider.com/ and the steps here may resolve your issue.
Or run PowerShell as administrator, paste this code:
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
and press enter.
- ashutoshs2020Copper Contributor
The Fix To Windows Defender’s Pop-Up Issue
- Press the Windows key,
- Type “PowerShell”,
- Right-click on Windows PowerShell and click “Run as administrator”,
- Copy the following command, paste it in PowerShell, and press Enter.
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
- AnatuGreenCopper ContributorHere is the solution given by fggIB and it works for Windows 11 Home 21H2 Build 22000.160:
This is awesome!
Run Powershell as admin and paste the following:
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
I just copied and pasted it into elevated PowerShell (run as admin) and it worked! I initially thought there would be a need to restart or any notifications but this worked straight.
For beginners, search for PowerShell on Windows, right-click and select "Run As Administrator", accept the prompt. Copy the above and paste it there, a very fast text will pop up and leave. Try opening the Windows security again. - rakibulmrhCopper Contributor
Asuka_Okami open Windows PowerShell as an administrator, then paste the following line using ctrl+v and press enter. I fixed the same problem using this. Good luck.
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage - ngguanrui74Copper Contributori also microsoft please fix
- SoftieeCopper ContributorI tried entering the "Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage" on powershell and had run as the administrator, but still didnt work.
I got the "Reset-AppxPackage : Package was not found.
Windows cannot remove Microsoft.SecHealthUI_1000.22000.1.0_neutral__8wekyb3d8bbwe because the current user does not
have that package installed. Use Get-AppxPackage to see the list of packages installed.
At line:1 char:51
+ Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Reset-AppxPackage], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.Windows.Appx.PackageManager.Comman
ds.ResetAppxPackageCommand" as an error.
anyone help?? - TomValeCopper Contributor
So I too had this issue on Win 11 and managed to fix it by running the following command in an Elevated powershell window
Get-AppxPackage -allusers *SecHealthUI* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
- zvlmnCopper Contributor
- TomVale
So I too had this issue on Win 11 and managed to fix it by running the following command in an Elevated powershell window
Get-AppxPackage -allusers *SecHealthUI* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
To be clear, this was the fix
- zvlmnCopper ContributorThanks so much. This one worked for me. The original listed at the beginning got me an error.
- rkhalil1402Copper Contributor
TomVale thanks its perfect
- Melvin_H0Copper ContributorSame Issue after W11 update, but I have a third - party antivirus, guess it might cause some problem?
- GriphassCopper ContributorMême problème ici, j'ai aussi lancé un ticket. https://techcommunity.microsoft.com/t5/windows-insider-program/windows-defender-absent/m-p/2627198