问题描述
解决方案
以管理员身份打开 PowerShell
$BasePath = Get-Content .\appx.list
$BasePath | % {
$Path = $($_).Trim()
Add-AppxPackage -Register -DisableDevelopmentMode "$Path\AppXManifest.xml"
}
Get-AppxPackage | Select InstallLocation | Out-file appx.list
Add-AppxPackage -Register -DisableDevelopmentMode "C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\AppXManifest.xml"
第一行报错不用管