Skip to content

WinGet 1.29.380 — winget list and winget upgrade fail with 0x80070057 #6620

Closed

Description

Issue Resolved

Looks like the issue was caused by malformed package metadata published in the WinGet Community source for Microsoft PowerShell. The issue originated in the repository index itself, meaning any local repair was only a temporary workaround because the bad metadata would be re-downloaded during source updates.


Relevant area(s)

PowerShell Module

Relevant command(s)

winget upgrade

Brief description of your issue

WinGet 1.29.380 — winget list and winget upgrade fail with 0x80070057

Environment

  • Windows 11 ARM64, build 28000.3231
  • Windows Package Manager 1.29.380
  • App Installer 1.29.380.0
  • PowerShell 7.6.8 ARM64 (MSIX)

Issue

Running winget list, winget upgrade, or winget upgrade --all immediately fails with:

An unexpected error occurred while executing the command:
0x80070057 : The parameter is incorrect.

Troubleshooting results

  • winget search works.
  • winget source update succeeds.
  • winget list --scope machine succeeds.
  • winget list --scope user fails.
  • winget list --source msstore succeeds.
  • winget list --source winget fails.
  • winget list --id Microsoft.PowerShell --exact fails.
  • winget list --id Microsoft.VisualStudioCode --exact --scope user succeeds.
  • PowerShell's MSIX package reports Status: Ok.
  • Both PowerShell 7.6.8 and 7.6.8.0 manifests are readable through winget show.
  • Removing and re-adding the WinGet community source does not resolve the issue.

Diagnostic exception

AppInstallerSharedLib\Versions.cpp(583)
WindowsPackageManager.dll
Exception: 0x80070057

Expected behavior

WinGet should enumerate installed applications and identify available upgrades without throwing an exception.

Actual behavior

Installed-package enumeration fails when the WinGet community source participates, particularly when querying Microsoft.PowerShell.

Request

Please investigate whether WinGet 1.29.380 has a regression involving installed MSIX package matching or version processing.

Steps to reproduce

Steps to Reproduce

  1. On Windows 11 ARM64 (build 28000.3231), install or use the following:

    • Windows Package Manager (winget) version 1.29.380
    • App Installer version 1.29.380.0
    • PowerShell 7.6.8 (ARM64, MSIX installation)
  2. Open PowerShell 7.6.8.

  3. Verify that WinGet is installed and operational:

    winget --version
    winget source list
    winget search --id Microsoft.PowerShell --exact

    All commands complete successfully.

  4. Attempt to enumerate installed applications:

    winget list

    The command fails immediately with:

    An unexpected error occurred while executing the command:
    0x80070057 : The parameter is incorrect.
    
  5. Attempt to list available upgrades:

    winget upgrade
    winget upgrade --all

    Both commands fail with the same error.

  6. Isolate the failure by installation scope:

    winget list --scope machine
    winget list --scope user

    Machine-scoped enumeration succeeds; user-scoped enumeration fails.

  7. Isolate the failure by repository:

    winget list --source msstore
    winget list --source winget

    The Microsoft Store source succeeds, while the WinGet community source fails with 0x80070057.

  8. Query the installed PowerShell package:

    winget list --scope user --id Microsoft.PowerShell --exact

    This reproduces the same error.

  9. Verify that PowerShell's package registration and repository manifests are readable:

    Get-AppxPackage -Name Microsoft.PowerShell
    winget show --id Microsoft.PowerShell --exact --version 7.6.8
    winget show --id Microsoft.PowerShell --exact --version 7.6.8.0

    The installed MSIX reports Status: Ok, and both manifests are retrieved successfully.

  10. Attempt to refresh and rebuild the WinGet community source:

    winget source update
    winget source remove --name winget
    winget source add --name winget --arg https://cdn.winget.microsoft.com/cache --type Microsoft.PreIndexed.Package

    Retesting winget list and winget upgrade produces the same error.

Diagnostic Information

Verbose WinGet logging identifies the following exception:

AppInstallerSharedLib\Versions.cpp(583)
WindowsPackageManager.dll
Exception: 0x80070057
The parameter is incorrect.

Expected Behavior

winget list should enumerate installed applications, and winget upgrade should identify available package updates without throwing an exception.

Actual Behavior

Both commands terminate with 0x80070057. The failure is reproducible when querying the installed Microsoft.PowerShell package through the WinGet community source, while Microsoft Store queries and machine-scoped enumeration succeed.

Additional Notes

The behavior persists after refreshing and rebuilding the WinGet source. The root cause has not been confirmed, but the evidence suggests a possible regression in WinGet's installed-package matching or version-processing logic, potentially involving the PowerShell ARM64 MSIX installation.

Expected behavior

Expected behavior

WinGet should enumerate installed applications and identify available upgrades without throwing an exception.

Actual behavior

Actual behavior

Installed-package enumeration fails when the WinGet community source participates, particularly when querying Microsoft.PowerShell.

Environment

**Environment**
- Windows 11 ARM64, build 28000.3231
- Windows Package Manager 1.29.380
- App Installer 1.29.380.0
- PowerShell 7.6.8 ARM64 (MSIX)

Activity

  1. added
    Issue-Bug
    Needs-Triage
    on Oct 23, 2026
  2. added
    PowerShell
    Command-Upgrade
    on Oct 23, 2026
  3. yjfvictor commented on Oct 23, 2026

    @yjfvictor

    I've just got exactly the same problem.
    Not a PowerShell issue. The problem occurs in both PowerShell and CMD (Command Prompt).

  4. driscollw commented on Oct 23, 2026

    @driscollw

    I started having is problem once I installed Powershell 7.6.8. I uninstalled both PowerShell 7.6.8 (store and msi), somehow I had two installed. winget was working again in Windows Powershell 5.1. So I reinstalled PowerShell 7.6.8 from the MS store and Winget is not working on either one. Not sure what the deal is.

  5. FrancisHogle commented on Oct 24, 2026

    @FrancisHogle

    I am using winget in CMD and got the same problem, so I tried uninstalling PowerShell 7.6.8 per William Driscoll (@driscollw) above. I confirmed that winget started working again.

    UPDATE: did not hit the error after installing PowerShell-LTS (v7.4.21)

  6. denelon commented on Oct 24, 2026

    @denelon
    Collaborator

    This should be fixed now.

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-BugPowerShell

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions