所有的Metro Apps不能够正常打开,表现为打开后自动最小化到任务栏,并且不能恢复正常状态。在Event ViewerApplication中相应的错误信息为:
Activation of app winstore_cw5n1h2txyewy!Windows.Store failed with error: This app does not support the contract specified or is not installed. See the Microsoft-Windows-TWinUI/Operational log for additional information.
- 如果只是要打开PC Settings,以管理员权限运行命令行:
powershell -ExecutionPolicy Unrestricted Add-AppxPackage -DisableDevelopmentMode -Register $Env:SystemRootImmersiveControlPanelAppxManifest.xml
- 重新安装所有Metro应用,在PowerShell中执行命令(It performs a complete reinstall of the "metro" apps using the following command in PowerShell to fix the apps minimizing on start:)
Get-AppxPackage | % { Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)AppxManifest.xml" -verbose }
What it does is this: Get-AppxPackage
gets a list of installed app packages (.appx) and Add-AppxPackage
installs an app package. So the command kind of reinstalls metro applications, but with DevelopmentMode disabled. It shouldn't be harmful in a sense that it won't install anything new or remove existing apps.
参考资料: