No Powershell Package Found

Britney22775 20 Reputation points
2026-06-28T16:52:16.9066667+00:00

I am trying to install Powershell 7 on through WindowsPowershell 5.1. I have 2 questions, why should I install Powershell if I have Windows Powershell 5.1? And as I try to install Powershell 7, I get this message when searching for it using the WindowsPowershell: (Essentially it says no package found) How do I fix?

PS C:\WINDOWS\System32> winget search --id Microsoft.Powershell --exact

The msstore source requires that you view the following agreements before using.

Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction

The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US").

Do you agree to all the source agreements terms?

[Y] Yes [N] No: Y

No package found matching input criteria.

PS C:\WINDOWS\System32> winget search --id Microsoft.Powershell --exact

No package found matching input criteria.

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments

Answer accepted by question author

Marcin Policht 95,355 Reputation points MVP Volunteer Moderator
2026-06-28T17:01:54.4166667+00:00

Windows PowerShell 5.1 is the legacy version included with Windows and built on the older .NET Framework. PowerShell 7 is the newer version built on modern .NET, with better performance, improved scripting features, parallel execution, better remoting, cross-platform support, and ongoing development from Microsoft. Most new PowerShell improvements now target PowerShell 7, while 5.1 mainly remains for backward compatibility with older Windows modules and administration tools.

Your issue is caused by the package ID being incorrect. The correct Winget package ID is Microsoft.PowerShell, not Microsoft.Powershell. Try:

winget search --id Microsoft.PowerShell

Then install using:

winget install --id Microsoft.PowerShell --exact

If it still says no package found, update Winget/App Installer through the Microsoft Store and retry. You can also install PowerShell 7 directly from Microsoft by downloading the latest x64 MSI installer from https://github.com/PowerShell/PowerShell/releases


If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

hth

Marcin

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.