How to use Get-AppXPackage to display only version

Darien Chiba 51 Reputation points
2023-01-22T14:33:12.92+00:00

Hi,

When I run the command [Get-AppXPackage quickassist], 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
0 comments No comments
{count} votes

Accepted answer
  1. Rich Matheisen 47,901 Reputation points
    2023-01-22T15:56:27.5266667+00:00

    Try this:

    (Get-AppXPackage quickassist).Version
    
    
    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Limitless Technology 44,766 Reputation points
    2023-01-23T17:02:03.0566667+00:00
    
    Hello Darien Chiba,
    
    Besides extracting only version with (Get-AppXPackage quickassist]).version line, I can recommend using with a simple script in order to achieve other maintenance tasks such as removing a package if doesn't met a version:
    
    [version]$version=(get-appxpackage -Name *Microsoft.WindowsCalculator* -Allusers).Version
    
    If ($Version -eq [version]"11.2210.0.0")
    {
        "Minimum version met"
    }
    ElseIf ($Version -lt [version]"11.2210.0.0")
    {
    Remove-AppxPackage -Package $version -Allusers
    }
    
    --If the reply is helpful, please Upvote and Accept as answer--
    
    0 comments No comments

  2. Limitless Technology 44,766 Reputation points
    2023-01-23T17:02:10.0866667+00:00
    
    Hello Darien Chiba,
    
    Besides extracting only version with (Get-AppXPackage quickassist]).version line, I can recommend using with a simple script in order to achieve other maintenance tasks such as removing a package if doesn't met a version:
    
    [version]$version=(get-appxpackage -Name *Microsoft.WindowsCalculator* -Allusers).Version
    
    If ($Version -eq [version]"11.2210.0.0")
    {
        "Minimum version met"
    }
    ElseIf ($Version -lt [version]"11.2210.0.0")
    {
    Remove-AppxPackage -Package $version -Allusers
    }
    
    --If the reply is helpful, please Upvote and Accept as answer--
    
    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.