Can't install Powershell 3.0

Im trying to install powershell 3.0 on my Win7 64 bit pc, but I get the error "the update is not applicable to your computer."

After googling the error, all the solutions I see are that you need to install .net 4 full profile.

However, .net 4 won't install, as I have .net 4.5 installed. I did a repair on .net 4.5 to see if that would help, but it didnt.

Anyone know of a solution? Im wondering if I have to uninstall .net 4.5 and 4 and reinstall them.

Update: I uninstalled .NET 4.5 and 4 and reinstalled the 4.0 full profile - no luck I double checked I had the correct version for Win 7 64 bit - I do...


Solution 1:

Check you don't have a pre-release version installed. If so, uninstall it first then try again.

Alternatively, if you're absolutely sure you have all the pre-requisites in place, there is a possible workaround:

Unpack the EXE as if it were a ZIP file (I used 7-zip), open CMD in the same directory, then run the following substituting the name of your extracted CAB file:

start /w %SystemRoot%\system32\pkgmgr.exe /ip /m:Windows6.1-KB2506143-x86.cab

Wait until prompted to reboot, then reboot.

Source: Microsoft Connect - Quote was posted as a workaround and has been edited slightly to improve grammar

Solution 2:

I finally got Powershell 3 to install! This was a complete PITA.

To be honest, Ive tried so many things and got so many errors, Im not entirely sure what did the trick exactly. I dont know if all the steps were necessary, but in the end it ended up working.

  • Uninstalled .NET 4.5
  • Uninstalled .NET 4
  • Uninstalled any other .NET related applications such as SDKs and some other things
  • rebooted
  • Installed .NET 4 Full client profile for Win 7 64 bit
  • Installed patches to .NET 4
  • rebooted
  • extracted the .CAB files from the installer for Powershell 3 for Win 7 64 bit
  • ran pkmgr on the extracted .CAB file (I dont think this helped, I know it failed in many attempts while trying to get it working)
  • ran wusa.exe on the extracted .CAB file (I think this is what did it in the end) got a reboot notification
  • rebooted
  • ran a get-host in powershell and it returned version 3. (woohoo!)
  • reinstalled .NET 4.5
  • installed patches for .NET 4.5 rebooted
  • ran a get-host in powershell and it still worked returned version 3 (phew)

Solution 3:

I have windows 7 home premium. I had the same issue and found a solution that worked for me in a book I purchased. The book is "Learn windows PowerShell 3 in a month of lunches". (second edition)In Chapter 1, 1.5 it states that PowerShell 3 requires .NET Framework v4. I downloaded it from Microsoft website and then I was able to download and install PowerShell 3 without any error.