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
You must be using Powershell & you must be using administrator permissions !
Enter:-(Copy&Paste) the following:-
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
It will eventually work 🙂 Good Luck 🙂
SteveF01Did not work for me
I have tried PowerShell, old PowerShell, Windows Terminal PowerShell... but it doesn't work on my system.
I tried an on place reinstall, but nothing (before I could see wheels settings and it crashed only when I tried to add a new app, now it crashes as soon as I open settings section) and I have the Defender problem after a clean installation (it worked with previuos installation, which was an upgrade of a Windows 10 installation)...
- SteveF01Feb 16, 2022Brass ContributorBrings back memories & frustrations I experienced over a year ago - I kept trying various methods of getting Powershell to do its thing I literally lost count & for a few days gave up on Windows11 ever working correctly- in the end I just continued a couple attempts daily and noticed Powershell opened differently with its Black Screen in admin privalidge and pasted the line into place but I then printed the same instruction line and deleted the pasted part - for some unknown reason it accepted the printed copy and has ever since appeared to be working ?
Don't give up & keep trying - its just a quirk with modern technology trying to adjust & keep up with changes that need to work on so many differing makes & models of Old & New Computers? It will eventually sort itself out for you I'm sure & once it does you'll enjoy the Windows 11
Meantime for computer Safety I'd recommend the Free versions of Malwarebytes Antivirus & the Emsisoft Emergency Kit Antivirus as backup protection till Windows Defender can work correctly ?- OliverEatonFeb 21, 2022Copper Contributor
SteveF01 I have been trying that command in the Admin' Command Prompt but always receive the error 'Get-AppxPackage' is not recognized as an internal or external command,
operable program or batch file.Is there any way around this, as it appears that this error has never been ranked about within the forum?
- RLSinRFVFeb 21, 2022Copper Contributor
Running Win11 - here's what worked for me.
Step 1.
Installed Powershell v7.2 from https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.2
(I installed the MSI)
Step 2.
Ran Powershell as administrator and entered: Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage