이 windowsdefender 링크를 열려면 새 앱이 필요합니다
최근 Windows 10에서 Windows 11로 업데이트 후 제목과 같은 에러가 발생하면서 Windows 보안 설정을 실행시킬 수 없었다.
기존에 알려진 관리자모드에서의 PowerShell 명령을 입력했으나, 아래와 같은 에러가 발생하면서 초기화를 할 수 없는 상태...
PS C:\WINDOWS\system32>Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
"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.Commands.ResetAppxPackageCommand"
구글링을 통해 아래의 링크를 발견하고 적합한 명령을 찾아내서 해결했다.
아래의 명령을 PowerShell 관리자 모드에서 입력하면 해결된다.
PS C:\WINDOWS\system32>Get-AppxPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}