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:
- Uninstalled and reinstalled winget
- 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 ...
- Reinstalled App Installer