I'm trying to update PowerShell using Winget, but I'm running into some issues. When I use the command "winget list --id Microsoft.PowerShell --upgrade-available", I get an error saying 'Failed when searching source; results will not be included: winget' and 'No installed package found matching input criteria.'
Then, when I attempt to update with "winget install --id Microsoft.PowerShell", I see the error: 'Failed when searching source: winget' and 'An unexpected error occurred while executing the command: 0x8a15000f : Data required by the source is missing.' Winget is installed on my system, so I'm wondering if I'm doing something wrong or if there's another issue.
2 Answers
Just a heads up, Winget won’t update the version of PowerShell that comes with Windows itself. If it was bundled with your OS, it might not show up for updates. You can check by looking at the version of PowerShell in your system settings, or running the command "$PSVersionTable.PSVersion" in PowerShell.
You might want to try resetting the Winget source with the command: "winget source reset winget" followed by "winget source update". That can often help clear up any issues with searching for packages.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically