I previously wrote an article on how to install PowerShell Core on macOS. I recently needed to install PowerShell Core on a Windows machine and found the process less than ideal compared to macOS. I was able to find a simpler way to install and upgrade PowerShell Core that did not involve me having to open a web browser to download the MSI installer. Below is the command to run in PowerShell and have the MSI downloaded. I have also included the screenshots for the installation.

iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"

Once you run the command, the MSI installer is downloaded and starts the installation wizard. You need to click Next to continue.

The next screen shows you the location of the default installation directory. You can either choose to leave the default or change the folder path. Then click Next.

The next screen allows you to select the optional actions to include with the installation. By default, it selects Add PowerShell to Path Environment Variable and Register Windows Event Logging Manifest. In the screenshot, I also decided to include Enable PowerShell Remoting and Add ‘Open here’ context menus to Explorer. Then click Next, followed by Install to start the installation process.

It takes a little bit to complete the installation, after which you can select the option to Launch PowerShell Core and then click Finish.

Once you do that, you arrive back at the PowerShell window. You can see information about the version of PowerShell Core downloaded along with the link.


Subscribe

Subscribe via my newsletter or RSS feed