Skip to content

Export and list output not the same #4812

Answered by Trenly
GBMacMan-LFS asked this question in General
Discussion options

You must be logged in to vote

I recommend trying the WinGet PowerShell Module and the Get-WinGetPackage commandlet

PS C:\Users\Trenly> $a = Get-WinGetPackage
PS C:\Users\Trenly> $a.Count
211
PS C:\Users\Trenly> $a[0]

Name     Id                Version Available Source
----     --                ------- --------- ------
Audacity Audacity.Audacity 3.6.1   3.6.3     winget

PS C:\Users\Trenly> $a[0] | gm

   TypeName: Microsoft.WinGet.Client.Engine.PSObjects.PSInstalledCatalogPackage

Name                  MemberType Definition
----                  ---------- ----------
CheckInstalledStatus  Method     string CheckInstalledStatus()
CompareToVersion      Method     Microsoft.WinGet.Client.Engine.PSObjects.PSCompareResul…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by denelon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants