我执行了以下步骤:
右键单击开始按钮,选择"命令提示符(Admin)"并键入powershell。然后在控制台中:
Set-ExecutionPolicy Unrestricted
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
但我收到错误消息
'Add-AppxPackage : Deployment failed with HRESULT: 0x80073D02, The package could not be installed because resources it
modifies are currently in use.
error 0x80004004: Unable to install because the following apps need to be closed
Microsoft.Windows.Cortana_cw5n1h2txyewy!CortanaUI.
NOTE: For additional information, look for [ActivityId] 2f7c4f34-6b07-0003-3254-7c2f076bd101 in the Event Log or use
the command line Get-AppxLog -ActivityID 2f7c4f34-6b07-0003-3254-7c2f076bd101
At line:1 char:38
+ ... | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.I ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (C:\Windows\Syst...ppXManifest.xml:String) [Add-AppxPackage], Exception
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand
答案 0 :(得分:1)
它清楚地说'无法安装,因为需要关闭以下应用'并指向Cortana,所以前往任务管理器并关闭它,然后重试