Install Powershell7 on Win 10 using command line

OS – Win 10 22H2

Command - iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
PS C:\Users\ROBO> iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
VERBOSE: About to download package from 'https://github.com/PowerShell/PowerShell/releases/download/v7.4.1/PowerShell-7.4.1-win-x64.msi'
Web request status [Downloaded: 12.1 MB of 103.9 MB                                                                  ]

We can use additional parameters like

  • Destination
  • Daily
  • Preview
  • UseMSI
  • Quiet
  • DoNotOverwrite
  • AddToPath

To install it on LINIX, we can use –

wget -O - https://aka.ms/install-powershell.sh | sudo bash

If you need more details, refer to the MS Support video.

Leave a Reply

Your email address will not be published. Required fields are marked *