Repository navigation
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 searchworks.winget source updatesucceeds.winget list --scope machinesucceeds.winget list --scope userfails.winget list --source msstoresucceeds.winget list --source wingetfails.winget list --id Microsoft.PowerShell --exactfails.winget list --id Microsoft.VisualStudioCode --exact --scope usersucceeds.- 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
-
On Windows 11 ARM64 (build
28000.3231), install or use the following:- Windows Package Manager (
winget) version1.29.380 - App Installer version
1.29.380.0 - PowerShell
7.6.8(ARM64, MSIX installation)
- Windows Package Manager (
-
Open PowerShell 7.6.8.
-
Verify that WinGet is installed and operational:
winget --version winget source list winget search --id Microsoft.PowerShell --exact
All commands complete successfully.
-
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. -
Attempt to list available upgrades:
winget upgrade winget upgrade --allBoth commands fail with the same error.
-
Isolate the failure by installation scope:
winget list --scope machine winget list --scope user
Machine-scoped enumeration succeeds; user-scoped enumeration fails.
-
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. -
Query the installed PowerShell package:
winget list --scope user --id Microsoft.PowerShell --exact
This reproduces the same error.
-
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. -
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 listandwinget upgradeproduces 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
yjfvictor commentedon Oct 23, 2026
I've just got exactly the same problem.
Not a PowerShell issue. The problem occurs in both PowerShell and CMD (Command Prompt).
driscollw commentedon Oct 23, 2026
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.
FrancisHogle commentedon Oct 24, 2026
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)
denelon commentedon Oct 24, 2026
This should be fixed now.