• Powershell how to update

    Home » Forums » Tools » Powershell how to update

    Author
    Topic
    #2744086

    Installed Powershell 6 and 7.4.6. How do I update to Powershell 7.5 ?

    Viewing 3 reply threads
    Author
    Replies
    • #2744100

      Alex,

      Open the old Windows PowerShell CLI and enter the following command:

      
      Invoke-Expression "& { $(Invoke-Restmethod https://aka.ms/Install-PowerShell.ps1) } -UseMSI"

      It may work from inside V6+ but I haven’t tried it.

      May the Forces of good computing be with you!

      RG

      PowerShell & VBA Rule!
      Computer Specs

      3 users thanked author for this post.
    • #2744110

      Updated to 7.5

      pwrshell

      1 user thanked author for this post.
    • #2744148

      Anyone else interested Installing PowerShell 7.4 on Windows,

      another method, you can use the MSI packages to install.

      https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.5#installing-the-msi-package

       

       

       

    • #2744364

      Alternatively, use WinGet (using PowerShell‘s ID, rather than Name, so there’s no confusion (a)):

      winget install Microsoft.PowerShell

      winget_powershell

      Note that you can, instead, download/install the Preview version (b).

      winget install Microsoft.PowerShell.Preview

      To save having to respond to prompts, you can append acceptance for both the source and package agreements. For example:

      winget install Microsoft.PowerShell –accept-source-agreements –accept-package-agreements

      Note that if you previously installed PowerShell 7.4.6 then you could just update it (again, using its ID so there’s no confusion):

      winget update Microsoft.PowerShell

      (Just be aware of the risk of unintended consequences if you use winget update –all.)

      Hope this helps…

    Viewing 3 reply threads
    Reply To: Powershell how to update

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: