How to use Get-AppXPackage to display only version?

Darien Chiba 51 Reputation points
2023-01-22T14:26:13.9733333+00:00

Hi,

When I run the "x" command, it shows the result below. Which parameter should I use so that it only shows the "Version" line?

Name              : Microsoft.Windows.NarratorQuickStart
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : Neutral
ResourceId        : neutral
Version           : 10.0.19041.1023
PackageFullName   : Microsoft.Windows.NarratorQuickStart_10.0.19041.1023_neutral_neutral_8wekyb3d8bbwe
InstallLocation   : C:\Windows\SystemApps\microsoft.windows.narratorquickstart_8wekyb3d8bbwe
IsFramework       : False
PackageFamilyName : Microsoft.Windows.NarratorQuickStart_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : True
IsPartiallyStaged : False
SignatureKind     : System
Status            : Ok

Name              : MicrosoftCorporationII.QuickAssist
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X64
ResourceId        : 
Version           : 2.0.15.0
PackageFullName   : MicrosoftCorporationII.QuickAssist_2.0.15.0_x64__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\MicrosoftCorporationII.QuickAssist_2.0.15.0_x64__8wekyb3d8bbwe
IsFramework       : False
PackageFamilyName : MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
Dependencies      : {Microsoft.VCLibs.140.00.UWPDesktop_14.0.30704.0_x64__8wekyb3d8bbwe, 
                    MicrosoftCorporationII.QuickAssist_2.0.15.0_neutral_split.language-pt_8wekyb3d8bbwe, 
                    MicrosoftCorporationII.QuickAssist_2.0.15.0_neutral_split.scale-100_8wekyb3d8bbwe}
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok
Windows for business | Windows Server | User experience | PowerShell
{count} vote

2 answers

Sort by: Most helpful
  1. Santhi Swaroop Naik Bukke 595 Reputation points
    2023-01-22T18:53:34.44+00:00

    You can use the Get-AppXPackage cmdlet in PowerShell to display only the version of an app package by chaining it with the Select-Object cmdlet. Here is an example of how you can use these cmdlets to display only the version of an app package:

    Copy code
    Get-AppXPackage -Name "Microsoft.WindowsCalculator" | Select-Object -ExpandProperty Package | Select-Object -ExpandProperty Version
    

    In this example, the Get-AppXPackage cmdlet is used to retrieve the app package for the Calculator app (Microsoft.WindowsCalculator), and the Select-Object cmdlet is used to display only the Version property of the package.

    You can also use -Name parameter to filter the package you want, and use -AllUsers to include all users package.

    Copy code
    Get-AppXPackage -AllUsers -Name "Microsoft.WindowsCalculator" | Select-Object -ExpandProperty Package | Select-Object -ExpandProperty Version
    

    This will give you the version of the Calculator app for all users of the device.


  2. Tyrone 0 Reputation points
    2024-05-10T06:27:48.5433333+00:00
    Get-AppxPackage -AllUsers | Select Name, Version
    
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.