無法在 Windows Server 2022 Core 上安裝任何 appxpackage,因為未註冊 windows.capability 擴展

無法在 Windows Server 2022 Core 上安裝任何 appxpackage,因為未註冊 windows.capability 擴展

透過 cmdlet 安裝任何內容Add-AppxPackage都會導致錯誤:

Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF6, Package could not be
registered.
error 0x80040154: Cannot register the request because the following error was
encountered while initializing the windows.capability extension: Class not registered
.
NOTE: For additional information, look for [ActivityId]
66806e04-39e0-0000-bb37-17e40d75d901 in the Event Log or use the command line
Get-AppPackageLog -ActivityID 66806e04-39e0-0000-bb37-17e40d75d901
At line:1 char:1
+ Add-AppxPackage .\Microsoft.VCLibs.x64.14.00.Desktop.appx
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (C:\Users\Admin\...00.Desktop.appx:String) [Ad
   d-AppxPackage], IOException
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Comm
   ands.AddAppxPackageCommand

我認為此訊息表示 appx 套件<windows.capability>在清單 xml 中有一個部分,但相關處理程序未註冊。

我該怎麼辦?我能做些什麼?

相關內容