Download PowerShell 5.1 for Windows Server 2012 R2
Today i will show you how to update the PowerShell to 5.1 or proceed with the new installation of the PowerShell Core 7.3 which can be use it in multiple OS. Show
Let's take a look in the following table from Microsoft to find out your prerequisites base on your Windows Version. Prerequisites for the PowerShell 5.1I copy the table from Microsoft Documentation to prepare for the next steps. If you need more details the you can read the Microsoft Documentation Windows PowerShell System Requirements
How to update the PowerShell to the latest versionBefore start the to upgrade the PowerShell it's better to check the PowerShell version that already have. You can open the PowerShell as Administrator and type the command $PSVersionTable.PSVersion. Next step is to download the Windows Management Framework 5.1and the .NET Framework 4.5.2 which are the prerequisite for the Powershell 5.1. It's recommended to download the latest version .NET Framework 4.8 After you have successfully download the application let's start the installation to update the Powershell
What is the PowerShell 7 CoreMicrosoft has started to release the PowerShell Core which is an open source cross platform edition of the PowerShell. It's recommended to use it when you have various OS in your environemnt and you want a single script language to manage your Servers. Also it's build for hybrid cloud. If you would like to read more details for the difference between PowerShell 5.1 and Powershell Core you can read the docimentation from Microsoft in Differences between Windows PowerShell 5.1 and PowerShell 7.x . Prerequisites for the PowerShell 7The only prerequisites that I found in the Microsoft Documentation are the followings
How to install PowerShell 7 CoreThere are multiple ways to install PowerShell 7 base on your requirements. The installation is straightforward without need to spend lot of time. Let's see all the different ways that can use to install the Powershell 7
Install it with WingetInstallation with Winget it's the recommended method from Microsoft to install in the Windows Clients without means that you can't use it any of the other methods. Note that the winget it's not supported on the Windows Servers. The winget command line tool is only supported on Windows 10 1709 (build 16299) or later.
With Msi PackageOther method that you can use is the most common with an MSI Package.
With Zip PackageThe installaltion method with zip package it match better for the dockers or Linux OS. But if you prefer you can do the installation with Zip Package in any environemnt.
From Microsoft StoreOn Windows 10 or Windows 11 you can install the PowerShell 7.3 from Microsoft Store. However this method can't be used in Windows Server OS. The installation of PowerShell from Microsoft Store has the following advantages:
To install the PowerShell 7.3 from Microsoft Store just open the Microsoft Store and type Powershell. Run Get to install the Powerssell in the Windows 10. That's it!! As we can see the upgrade to the PowerShell 5.1 or the installation of the PowerShell Core 7.3 it's a simple and straighforward. How to install PowerShell on Windows Server 2012 R2?In this article. Download and install the WMF 5.1 package.. Install WMF 5.1 for Windows Server 2008 R2 and Windows 7.. WinRM Dependency.. Install WMF 5.1 for Windows Server 2012 R2, Windows Server 2012, and Windows 8.1.. What is the latest version of PowerShell for Windows Server 2012 R2?Windows PowerShell 3.0 and Windows PowerShell 4.0 require Windows Management Instrumentation 3.0 (WMI). This program is included in Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows Management Framework 4.0, and Windows Management Framework 3.0.
Is PowerShell 5.1 supported?Windows PowerShell 5.1 is backward-compatible. Cmdlets, providers, modules, snap-ins, scripts, functions, and profiles that were designed for Windows PowerShell 4.0, Windows PowerShell 3.0, and Windows PowerShell 2.0 generally work in Windows PowerShell 5.1 without changes.
|