I recently had to install PowerShell v. 4.0 (https://www.microsoft.com/en-us/download/details.aspx?id=40855) on a Windows Server 2008 R2 server and I noticed that after installing PowerShell v. 4.0, running $PSVersionTable still only showed v. 2.0!
Well, I did a bit of digging through PowerShell articles and came across this insightful article: http://social.technet.microsoft.com/wiki/contents/articles/21016.how-to-install-windows-powershell-4-0.aspx
It provided this very useful information:
Scenario: Installing WMF 4.0 on a computer that is not running .NET Framework 4.5 will report that the installation is successful, but the components of WMF 4.0 (such as Windows PowerShell, WMI, etc.) will not be updated.
Solution: Install .NET Framework 4.5, and then run the WMF 4.0 installer again.
It also pointed to this article: http://blogs.msdn.com/b/powershell/archive/2013/10/29/wmf-4-0-known-issue-partial-installation-without-net-framework-4-5.aspx
As it turned out, .NET Framework v. 4.5 was not installed on this server, and therefore I needed to install .NET Framework v. 4.5 BEFORE installing PowerShell v. 4.0!!
After I did this, my PowerShell version correctly displayed v 4.0!
Well, I did a bit of digging through PowerShell articles and came across this insightful article: http://social.technet.microsoft.com/wiki/contents/articles/21016.how-to-install-windows-powershell-4-0.aspx
It provided this very useful information:
Scenario: Installing WMF 4.0 on a computer that is not running .NET Framework 4.5 will report that the installation is successful, but the components of WMF 4.0 (such as Windows PowerShell, WMI, etc.) will not be updated.
Solution: Install .NET Framework 4.5, and then run the WMF 4.0 installer again.
It also pointed to this article: http://blogs.msdn.com/b/powershell/archive/2013/10/29/wmf-4-0-known-issue-partial-installation-without-net-framework-4-5.aspx
As it turned out, .NET Framework v. 4.5 was not installed on this server, and therefore I needed to install .NET Framework v. 4.5 BEFORE installing PowerShell v. 4.0!!
After I did this, my PowerShell version correctly displayed v 4.0!
No comments:
Post a Comment