Using Get-AppxPackageManifest on Windows 8

319 Views Asked by At

I tried running this command on a Windows 8 Powershell-

Get-AppxPackageManifest -Package Microsoft.ZuneVideo_1.0.927.0_x64__8wekyb3d8bbwe | Select -Property *

This is the error I got-

Get-AppxPackageManifest : Cannot bind parameter 'Package'. Cannot convert the
"Microsoft.ZuneVideo_1.0.927.0_x64__8wekyb3d8bbwe" value of type "System.String" to type
"Microsoft.Windows.Appx.PackageManager.Commands.AppxPackage".
At line:1 char:34
+ Get-AppxPackageManifest -Package Microsoft.ZuneVideo_1.0.927.0_x64__8wekyb3d8bbw ...
+                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidArgument: (:) [Get-AppxPackageManifest], ParameterBindingException
+ FullyQualifiedErrorId : 
CannotConvertArgumentNoMessage,Microsoft.Windows.Appx.PackageManager.Commands.GetAppxPac
kageManifestCommand

I can directly pass the PackageFullName on Windows 10 but am unable to do so on Windows 8, as it does not seem to accept System.String type arguments. How exactly do I pass a Microsoft.Windows.Appx.PackageManager.Commands.AppxPackage type argument to make Get-AppxPackageManifest work

1

There are 1 best solutions below

0
lmnml On

This is how I managed to make the statement in my question work (Getting all the details using PackageFullName)-

Get-AppxPackageManifest -Package $(Get-AppxPackage | where PackageFullName -eq "Microsoft.ZuneVideo_1.0.927.0_x64__8wekyb3d8bbwe") | Select -Property *

And if you have the Name of the app (instead of PackageFullName) then you can do the following-

Get-AppxPackageManifest -Package $(Get-AppxPackage -Name "Microsoft.ZuneVideo") | Select -Property *