Comments on: How to Install and Update PowerShell 7 https://www.thomasmaurer.ch/2019/07/how-to-install-and-update-powershell-7/ Cloud and Datacenter Blog focusing on Microsoft Azure Wed, 27 Sep 2023 20:27:47 +0000 hourly 1 https://wordpress.org/?v=6.4.1 By: ky https://www.thomasmaurer.ch/2019/07/how-to-install-and-update-powershell-7/#comment-898896 Wed, 27 Sep 2023 20:27:47 +0000 https://www.thomasmaurer.ch/?p=12481#comment-898896 In reply to Georges.

super late and you may have solved it already, but i just had to say something; you entered it twice — you entered:

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

you need to enter:

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

]]>
By: Kev https://www.thomasmaurer.ch/2019/07/how-to-install-and-update-powershell-7/#comment-881739 Thu, 11 Aug 2022 17:54:23 +0000 https://www.thomasmaurer.ch/?p=12481#comment-881739 Hey Thomas, from the current powershell terminal:
“winget install Microsoft.Powershell”
This will install from the current winget source if the above winget command fails.

Cheers!

]]>
By: user https://www.thomasmaurer.ch/2019/07/how-to-install-and-update-powershell-7/#comment-878521 Wed, 08 Jun 2022 21:03:03 +0000 https://www.thomasmaurer.ch/?p=12481#comment-878521 Still useful after all these years, Thank you for posting this.

]]>
By: Thomas Maurer https://www.thomasmaurer.ch/2019/07/how-to-install-and-update-powershell-7/#comment-865177 Thu, 02 Dec 2021 09:33:34 +0000 https://www.thomasmaurer.ch/?p=12481#comment-865177 In reply to bobsyouruncle.

Windows PowerShell 5.1 and PowerShell 7 run site by site. Windows PowerShell runs as powershell.exe and if you want to run PowerShell 7 there is pwsh.exe to run.

]]>
By: bobsyouruncle https://www.thomasmaurer.ch/2019/07/how-to-install-and-update-powershell-7/#comment-865161 Thu, 02 Dec 2021 00:27:01 +0000 https://www.thomasmaurer.ch/?p=12481#comment-865161 I’m confused, I run this (on fresh VM of Windows Server 2022):

iex “& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI
>>>> “VERBOSE: About to download package from’https://github.com/PowerShell/PowerShell/releases/download/v7.2.0/PowerShell-7
.2.0-win-x64.msi’

But I don’t see powershell 7, just 5.1:

PS C:\Windows\system32> $PSVersionTable.PSVersion

Major Minor Build Revision
—– —– —– ——–
5 1 20348 320

I tried running pwsh but that’s not recognized.

]]>
By: Thomas Maurer https://www.thomasmaurer.ch/2019/07/how-to-install-and-update-powershell-7/#comment-857457 Fri, 16 Jul 2021 08:45:40 +0000 https://www.thomasmaurer.ch/?p=12481#comment-857457 In reply to Jason.

thanks! should be fixed now!

]]>
By: Jason https://www.thomasmaurer.ch/2019/07/how-to-install-and-update-powershell-7/#comment-857377 Tue, 13 Jul 2021 14:21:09 +0000 https://www.thomasmaurer.ch/?p=12481#comment-857377 there is a formatting error in the iex command. looks like it took your ampersand and added “amp”

]]>
By: Reynier https://www.thomasmaurer.ch/2019/07/how-to-install-and-update-powershell-7/#comment-851323 Tue, 20 Apr 2021 21:18:23 +0000 https://www.thomasmaurer.ch/?p=12481#comment-851323 Hi Thomas,

I have the latest preview of windows 10 and when try to update to latest PowerShell preview I get this error:

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

Invoke-RestMethod:
Line |
346 | … $metadata = Invoke-RestMethod https://raw.githubusercontent.com/Power
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Exception of type ‘System.Net.InternalException’ was thrown. -2146892963

Any idea? Best Regards

]]>
By: Thomas Maurer https://www.thomasmaurer.ch/2019/07/how-to-install-and-update-powershell-7/#comment-850446 Mon, 05 Apr 2021 15:53:05 +0000 https://www.thomasmaurer.ch/?p=12481#comment-850446 In reply to TechThatWorks.

thanks, I agree!

]]>
By: TechThatWorks https://www.thomasmaurer.ch/2019/07/how-to-install-and-update-powershell-7/#comment-850420 Mon, 05 Apr 2021 12:23:14 +0000 https://www.thomasmaurer.ch/?p=12481#comment-850420 Hi Thomas

Nice guide you have made here. I just love using PowerShell and figure out new way to do things making small scripts.

]]>