Thursday, December 17, 2015

Installing Windows PowerShell v. 4.0 on Windows Server 2008 R2

I recently had to install PowerShell v. 4.0 ( 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:

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: 

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