Forum Discussion
Windows 11's Windows Security App can't open.
- Sep 02, 2021
Hello,Suggest try the following steps:
- Open PowerShell by using Administrator rights
- Copy and paste Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage to the PowerShell window and press enter
- Close the PowerShell and retry
Me too 😞 ,I've searched but all the results not able to fix !
Access is denied.At line:1 char:1+ Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : NotSpecified: (:) [Get-AppxPackage], UnauthorizedAccessException+ FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Windows.Appx.PackageManager.Commands.GetAppxPackageCommandwrsjj77
- bygabeeApr 26, 2022Copper Contributor
MASA-0 I got the same error, so this is what I did:
Open PowerShell, type: Get-AppxPackage Microsoft.SecHealthUI -AllUsers
Type enter.
Open it again and type everything now: Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackageType enter.
Close PowerShell and try opening the Windows Security app. It worked for me!
- SasGxMay 02, 2022Copper ContributorThank you so much finally got it working by following your steps.
- tripleamacMar 08, 2022Copper Contributor
MASA-0 any luck? I get the same thing.
- Little_JoeMar 09, 2022Bronze ContributorTry the following if the previously does not works for you:
Get-AppxPackage -allusers *SecHealthUI* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}- NandoCanedoMar 15, 2022Copper ContributorYay! Thanks! That one worked for me!
- syn-ackMay 11, 2022Copper ContributorYou have to run this with Local Admin privs
- adammuizMay 24, 2022Copper Contributor
MASA-0 Please try run PowerShell as Administrator.
and if you still having problem,
make sure that you already update Windows to last version.
Then run as Administrator again PowerShell and command
"Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage"I hope it fixed.
Reference : Windows 11 Can’t Open Windows Security
I have same problem and this is work
- Ali-BOccultishJun 14, 2022Copper Contributor
MASA-0 I'm getting in red:
Get-AppxPackage : A positional parameter cannot be found that accepts argument 'AllUsers' . At line:1 char:1
+ Get-AppxPackage Microsoft.SecHealthUI - AllUsers | Reset-AppPackage
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+CategoryInfo :Invalid argument: ( : ) [Get-AppxPackage], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.Windows.Appx.PackageManager.Commands.GetAppxPackageCommand
- NazmulAyyanOct 11, 2023Copper Contributor
Have you solved the problem? I have the same problem. I copied and pasted the command but it didn't work like you. MASA-0