Winget "No package found matching input criteria."

Paul 0 Reputation points
2024-04-17T15:16:57.9266667+00:00

This is on a clean install of Windows 11 (the Win10 to Win11 just kept failing) with all updates. This is typical of my winget issues (all run as Administrator)

In Powershell5 trying to get 7:

PS C:\Windows\system32> winget --version
v1.2.10691
PS C:\Windows\system32> winget search Microsoft.PowerShell
No package found matching input criteria.
PS C:\Windows\system32>

And in CMD:

C:\Windows\System32>winget install --id Git.Git -e --source winget
No sources match the given value: winget
The configured sources are:
msstore

I eventually installed Powershell7 from an msi.

I have:

  1. Uninstalled and reinstalled winget
  2. Run a couple of commands from another recent answers.Microsoft.com winget issue that had a pair of commands of the form of: Add-AppxPackage -DisableDevelopmentMode -Register ...
  3. Reinstalled App Installer
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,182 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,811 Reputation points Microsoft Vendor
    2024-04-18T02:28:12.2266667+00:00

    Hi Paul,

    The package name is PowerShell, not Microsoft.PowerShell. You can install PowerShell by running

    winget install PowerShell --source msstore
    

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments