我已通过测试版程序升级到 Windows 11 Preview。尝试启动 Windows Defender 时出现错误消息:
谷歌搜索该问题,有应该是针对 Windows 10 的修复通过运行:
Add-AppxPackage -Register -DisableDevelopmentMode "C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\AppXManifest.xml"
来自管理员电源外壳。
在 Windows 11 预览版中我收到一个错误:
Add-AppxPackage : Cannot find path
'C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\AppXManifest.xml' because it does not exist.
At line:1 char:1
+ Add-AppxPackage -Register -DisableDevelopmentMode "C:\Windows\SystemA ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Windows\Syst...ppXManifest.xml:String) [Add-AppxPackage], ItemNotFou
ndException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand