Why can't I update powershell by winget?

sadjoylence 46 Reputation points

In this link ,it says


I did get an available upgrade. But when I try to update it, I got this.



So why is that?

A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,237 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rich Matheisen 45,431 Reputation points

    It may be that the version you're running now used a MSIX to install, but the newer version uses MSI (or some other combination of installers). Or it may be one of the other things found in this problem:


    Try this (mentioned in the 14 Nov 2022 post at the bottom of the above thread): winget install Microsoft.PowerShell -v --but substitute the version number to which you want upgrade to.

    Also, is the "winget" you're using the most recent version?

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful