Skip to content

Get-WinGetPackage | Where-Object {$_.IsUpdateAvailable} and winget update disagree on the list of upgradeable packages #5968

Closed

Description

Relevant area(s)

WinGet CLI

Relevant command(s)

winget upgrade

Brief description of your issue

On one of my Windows 11 machines I'm experiencing the following issue: Get-WinGetPackage | Where-Object {$_.IsUpdateAvailable} outputs 3 entries, while winget update reports 4 packages can be upgraded:

PS❯ winget update
Name               Id                                Version     Available   Source
-----------------------------------------------------------------------------------
HWiNFO® 64         REALiX.HWiNFO                     8.34        8.40        winget
iMazing            DigiDNA.iMazing                   3.4.0.9     3.4.0.10    winget
PDF-XChange Editor TrackerSoftware.PDF-XChangeEditor 10.8.1.406  10.8.2.407  winget
Amazon Kindle      Amazon.Kindle                     2.7.1.70978 2.8.0.70980 winget
4 upgrades available.
1 package(s) have pins that prevent upgrade. Use the 'winget pin' command to view and edit pins. Using the --include-pinned argument may show more results.
PS❯ Get-WinGetPackage | Where-Object {$_.IsUpdateAvailable} | ft -a

Name               Id                                Version    Available  Source
----               --                                -------    ---------  ------
HWiNFO®            REALiX.HWiNFO                     8.34       8.40       winget
iMazing            DigiDNA.iMazing                   3.4.0.9    3.4.0.10   winget
PDF-XChange Editor TrackerSoftware.PDF-XChangeEditor 10.8.1.406 10.8.2.407 winget

Here are the logs:

WinGet-2026-01-10-11.zip

Steps to reproduce

Unsure, but it could be that installing Amazon.Kindle version 2.7.1.70978 could be the trigger.

Expected behavior

Get-WinGetPackage | Where-Object {$_.IsUpdateAvailable} and winget update should output the same list

Actual behavior

Get-WinGetPackage | Where-Object {$_.IsUpdateAvailable} and winget update disagree on the list of upgradeable packages

Environment


    Windows Package Manager v1.12.440
    Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.26200.7462
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.27.440.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads
Configuration Modules              %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled

Activity

  1. added
    Issue-Bug
    Needs-Triage
    on Jan 10, 2026
  2. added
    PowerShell
    on Jan 12, 2026
  3. sba923 commented on Jan 15, 2026

    @sba923
    Author

    Repro'ed on another system:

    PS❯ Get-WinGetPackage | ? { $_.IsUpdateAvailable }
    
    Name                    Id              Version        Available      Source
    ----                    --              -------        ---------      ------
    Mozilla Firefox (en-US) Mozilla.Firefox 143.0          147.0          winget
    Google Chrome           Google.Chrome   143.0.7499.170 143.0.7499.193 winget
    obs-virtualcam          Fenrirthviti.o… Unknown        2.0.5          winget
    
    PS❯ winget update
    Name                          Id                      Version        Available      Source
    ------------------------------------------------------------------------------------------
    Mozilla Firefox (x64 en-US)   Mozilla.Firefox         143.0          147.0          winget
    TortoiseGit 2.18.0.0 (64 bit) TortoiseGit.TortoiseGit 2.18.0.0       2.18.0.1       winget
    Google Chrome                 Google.Chrome           143.0.7499.170 143.0.7499.193 winget
    3 upgrades available.
    1 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.
    3 package(s) have pins that prevent upgrade. Use the 'winget pin' command to view and edit pins. Using the --include-pinned argument may show more results.
    PS❯ winget --info
        Windows Package Manager v1.12.440
        Copyright (c) Microsoft Corporation. All rights reserved.
    
    Windows: Windows.Desktop v10.0.19045.6691
    System Architecture: X64
    Package: Microsoft.DesktopAppInstaller v1.27.440.0
    
    Winget Directories
    -------------------------------------------------------------------------------------------------------------------------------
    Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
    User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
    Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
    Portable Links Directory (Machine) C:\Program Files\WinGet\Links
    Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
    Portable Package Root              C:\Program Files\WinGet\Packages
    Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
    Installer Downloads                %USERPROFILE%\Downloads
    Configuration Modules              %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules
    
    Links
    ---------------------------------------------------------------------------
    Privacy Statement   https://aka.ms/winget-privacy
    License Agreement   https://aka.ms/winget-license
    Third Party Notices https://aka.ms/winget-3rdPartyNotice
    Homepage            https://aka.ms/winget
    Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
    
    Admin Setting                             State
    --------------------------------------------------
    LocalManifestFiles                        Disabled
    BypassCertificatePinningForMicrosoftStore Disabled
    InstallerHashOverride                     Disabled
    LocalArchiveMalwareScanOverride           Disabled
    ProxyCommandLineOptions                   Disabled
    DefaultProxy                              Disabled
    PS❯ gcm Get-WinGetPackage
    
    CommandType     Name                                               Version    Source
    -----------     ----                                               -------    ------
    Cmdlet          Get-WinGetPackage                                  1.11.460   Microsoft.WinGet.Client
    
  4. sba923 commented on Jan 15, 2026

    @sba923
    Author

    Repro'ed on another system:

    PS❯ Get-WinGetPackage | ? { $_.IsUpdateAvailable }
    
    Name                    Id              Version        Available      Source
    ----                    --              -------        ---------      ------
    Mozilla Firefox (en-US) Mozilla.Firefox 143.0          147.0          winget
    Google Chrome           Google.Chrome   143.0.7499.170 143.0.7499.193 winget
    obs-virtualcam          Fenrirthviti.o… Unknown        2.0.5          winget
    
    PS❯ winget update
    Name                          Id                      Version        Available      Source
    ------------------------------------------------------------------------------------------
    Mozilla Firefox (x64 en-US)   Mozilla.Firefox         143.0          147.0          winget
    TortoiseGit 2.18.0.0 (64 bit) TortoiseGit.TortoiseGit 2.18.0.0       2.18.0.1       winget
    Google Chrome                 Google.Chrome           143.0.7499.170 143.0.7499.193 winget
    3 upgrades available.
    1 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.
    3 package(s) have pins that prevent upgrade. Use the 'winget pin' command to view and edit pins. Using the --include-pinned argument may show more results.
    

    Same results with Microsoft.WinGet.Client version 1.12.440

  5. denelon commented on Jan 16, 2026

    @denelon
    Collaborator

    Stéphane BARIZIEN (@sba923) thanks for the repro's!

    That gives me enough information to share with the engineering team so they can address it.

  6. sba923 commented on Jan 16, 2026

    @sba923
    Author

    Stéphane BARIZIEN (@sba923) thanks for the repro's!

    That gives me enough information to share with the engineering team so they can address it.

    You're welcome!

  7. sba923 commented on Jan 16, 2026

    @sba923
    Author

    Stéphane BARIZIEN (@sba923) thanks for the repro's!

    That gives me enough information to share with the engineering team so they can address it.

    You're welcome!

  8. OranguTech commented on Jan 21, 2026

    @OranguTech

    I ran into this today.

    Seems a duplicate of issue #5654

    If it helps, the packages that the module was missing (false negative) is:

    - Kitware.CMake
    - namazso.OpenHashTab
    - Zandronum.Zandronum
    
  9. denelon commented on Jan 26, 2026

    @denelon
    Collaborator

    They will stay linked, so I'll close this one as a duplicate, but I'll indicate the repro steps on the other issue to look at this one.

  10. denelon commented on Jan 26, 2026

    @denelon
    Collaborator

    Duplicate of #5654

  11. microsoft-github-policy-service commented on Jan 26, 2026

    @microsoft-github-policy-service
    Contributor

    Hello @Stéphane BARIZIEN (@sba923),

    We've identified this as a duplicate of another issue or PR that already exists. This specific instance is being closed in favor of the linked issue. Please add your 👍 to the other issue to raise its priority. Thanks for your contribution!

    Template: msftbot/duplicate/closed

  12. moved this from To Do to Done in WinGeton Jan 26, 2026
  13. sba923 commented on Jan 31, 2026

    @sba923
    Author

    Another example:

    PS❯ get-wingetpackage | ? { $_.IsUpdateAvailable } | ft -a
    
    Name                          Id                          Version  Available Source
    ----                          --                          -------  --------- ------
    draw.io                       JGraph.Draw                 29.3.0   29.3.6    winget
    Mp3tag                        FlorianHeidenreich.Mp3tag   3.32     3.33      winget
    Notepad++                     Notepad++.Notepad++         8.9      8.9.1     winget
    Vim                           vim.vim.nightly             9.1.2114 9.1.2119  winget
    Eclipse Mosquitto MQTT broker EclipseFoundation.Mosquitto 2.0.22   2.1.0     winget
    Reduce PDF Size               SoftSea.ReducePDFSize       Unknown  1.0       winget
    PS❯ winget update
    Name                                   Id                          Version  Available Source
    --------------------------------------------------------------------------------------------
    draw.io 29.3.0                         JGraph.Draw                 29.3.0   29.3.6    winget
    Mp3tag v3.32                           FlorianHeidenreich.Mp3tag   3.32     3.33      winget
    Notepad++ (64-bit x64)                 Notepad++.Notepad++         8.9      8.9.1     winget
    Vim 9.1                                vim.vim.nightly             9.1.2114 9.1.2119  winget
    Eclipse Mosquitto MQTT broker (64 bit) EclipseFoundation.Mosquitto 2.0.22   2.1.0     winget
    5 upgrades available.
    1 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.
    2 package(s) have pins that prevent upgrade. Use the 'winget pin' command to view and edit pins. Using the --include-pinned argument may show more results.
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-UpgradeIssue-BugPowerShellResolution-Duplicate

    Type

    Projects

    • Status
      Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions