Skip to content

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

@sba923

Description

@sba923

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-UpgradeIssue related to WinGet UpgradeIssue-BugIt either shouldn't be doing this or needs an investigation.PowerShellIssue related to WinGet PowerShell Module or cmdletResolution-DuplicateIssue is a duplicate

    Type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions