4

I am trying to install Windows Powershell 4.0. I use Windows 7 SP1 OS (x64 Bit).

I have downloaded & installed below packages already.

  1. .NET Framework 4.5. (NDP451-KB2858728-x86-x64-AllOS-ENU.exe)
  2. Windows Management Framework 4.0. (Windows6.1-KB2819745-x64-MultiPkg.msu)

Both the packages got installed without giving any error however when I go to Powershell prompt & type the following:

powershell -version 4

It throws an error:

Cannot start Windows PowerShell version 4 because it is not correctly installed.

techraf
  • 4,403
SDG
  • 41

1 Answers1

5

It looks like is .NET Framework 4.5.1 not compatible with Powershell V4. So, I have uninstalled .NET Framework 4.5.1 and Windows Management Framework 4.0. Then I installed .NET Framework 4.5 (dotnetfx45_full_x86_x64.exe) & re-installed WMF 4.0. And rebooted the computer. This time I saw Windows Update was running & it was updating OS. I knew that it was going well.

Now I have PowerShell 4.0 installed in my computer. If I type $PSVersionTable it will return the result as:

PS C:\Users\Admin> $PSVersionTable

----        -----
PSVersion   4.0 
masegaloeh
  • 18,498