If you have any "Preview" versions of WMF 5.0 or 5.1 installed, you must uninstall them before proceeding with the RTM (Release to Manufacturing) version. How to Install PowerShell 5.1 on Server 2012 R2 How to upgrade a Windows Server 2012 R2 to PowerShell 5
Upgrading PowerShell on Windows Server 2012 R2 is a critical task for administrators who want to leverage modern automation features, improved security, and better module management. By default, Windows Server 2012 R2 ships with PowerShell 4.0. To move to version 5.0 or 5.1, you must install the . Direct Download Links
Available via the WMF 5.0 download page , though Microsoft often redirects this to 5.1 as it is the "Superceeded" version. Why Upgrade to PowerShell 5.x? powershell 5.0 download windows server 2012 r2
You must have .NET Framework 4.5 or higher installed.
Windows Server 2012 R2 (standard or datacenter). If you have any "Preview" versions of WMF 5
Support for formal object-oriented programming within scripts.
Allows you to find and install modules directly from the PowerShell Gallery. To move to version 5
While many users search for "PowerShell 5.0," it has largely been superseded by version 5.1, which is the final and most stable version of the "Windows PowerShell" line.