the return from Add-AppxPakcgae doesnt contain the UWP information the computer has

Masa 1 Reputation point Microsoft Employee
2020-09-09T22:58:58.12+00:00

Hi, Team.

Do you happen to know the potential root cause below ?

phenomenon : the return from Add-AppxPakcgae doesn't contain UWP information the computer has.

see below more explicit scenario I'm saying.

When we did below command on Elevated Power Shell , we got the list installed app on the computer.
Get-AppxPackage |select name

<Result>

Name

Microsoft.Windows.StartMenuExperienceHost
Microsoft.Windows.ShellExperienceHost
windows.immersivecontrolpanel
Microsoft.Windows.Cortana
Microsoft.AAD.BrokerPlugin
Microsoft.MicrosoftEdge
Microsoft.Windows.CloudExperienceHost
Microsoft.Windows.ContentDeliveryManager
Microsoft.Windows.Photos
Microsoft.UI.Xaml.2.1
Microsoft.UI.Xaml.2.1
Microsoft.NET.Native.Framework.2.2
Microsoft.NET.Native.Framework.2.2
Microsoft.NET.Native.Runtime.2.2
Microsoft.NET.Native.Runtime.2.2
Microsoft.VCLibs.140.00
Microsoft.VCLibs.140.00


above list doesn't contain the App computer has ( calculator in this case )
but the list will have the name as calc after below step.

when they did below command , the we got the return regarding calculator as below shown.

Get-AppxPackage -name calc ,

Name : Microsoft.WindowsCalculator
Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture : X64
ResourceId :
Version : 10.1908.0.0
PackageFullName : Microsoft.WindowsCalculator_10.1908.0.0_x64__8wekyb3d8bbwe
InstallLocation : C:\Program Files\WindowsApps\Microsoft.WindowsCalculator_10.1908.0.0_x64__8wekyb3d8bbwe
IsFramework : False
PackageFamilyName : Microsoft.WindowsCalculator_8wekyb3d8bbwe
PublisherId : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle : False
IsDevelopmentMode : False
NonRemovable : False
Dependencies : {Microsoft.UI.Xaml.2.2_2.21909.17002.0_x64__8wekyb3d8bbwe, Microsoft.VCLibs.140.00_14.0.27810.0_x64
__8wekyb3d8bbwe}
IsPartiallyStaged : False
SignatureKind : Store
Status : Ok


after above , when we did below command , we got the list which contains the name as calc.

Microsoft.Windows.StartMenuExperienceHost
Microsoft.Windows.ShellExperienceHost
windows.immersivecontrolpanel
Microsoft.Windows.Cortana
Microsoft.AAD.BrokerPlugin
Microsoft.MicrosoftEdge
Microsoft.Windows.CloudExperienceHost
Microsoft.Windows.ContentDeliveryManager
Microsoft.Windows.Photos
Microsoft.UI.Xaml.2.1
Microsoft.UI.Xaml.2.1
Microsoft.NET.Native.Framework.2.2
Microsoft.NET.Native.Framework.2.2
Microsoft.NET.Native.Runtime.2.2
Microsoft.NET.Native.Runtime.2.2
Microsoft.VCLibs.140.00
Microsoft.VCLibs.140.00
Microsoft.WindowsCalculator
Microsoft.UI.Xaml.2.2
Microsoft.UI.Xaml.2.2


do you happen to know why this happen potentially ?
( one of thing what I can't understand is , It seems the list we got would be too less .
it seems like that the return hasn't finished correctly ... but don't know why ... )

could you give me your thought ?

equipment environment
Windows 10 Enterprise 1909 on Citrix

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,355 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,486 Reputation points Microsoft Vendor
    2020-09-10T08:19:19.933+00:00

    Hi,

    There should be no differences and I don't reproduce the issue on my machine. You'd save the output in a varieble or write the output to a file with Out-File and check if the differences still exist.

    Best Regards,
    Ian

    0 comments No comments