Installing Powershell 3.0 on Windows 7 – updates were not installed

installationpowershell

I am trying to install Powershell 3.0 on my Windows 7 x64 SP1. Update starts, but then it says

Some updates were not installed. The following updates were not
installed: Update for Windows KB2506143.

…and an option to Close. Tried rebooting to make sure there are not any locked files etc. – same problem persists. Framework 4.5 is installed with VS 2012.

I used this page to download:

Download Center – Windows Management Framework 3.0

And this file to install:

Windows6.1-KB2506143-x64.msu

Here is how it looks:

enter image description here

Troubleshooting: I tried installing on another machine, which is also Windows 7 x64 and it worked without a problem, smooth as butter. I'll try on more machines and keep this question updated.

Best Answer

I just had the exact same problem.

To find out more about what went wrong, I opened Event Viewer and under 'Windows Logs' opened the 'Setup' log. The most recent error is:

Windows update "Update for Windows (KB2506143)" could not be installed because of error 2147942417 "The system cannot move the file to a different disk drive." (Command line: ""C:\Windows\system32\wusa.exe" "E:\Windows6.1-KB2506143-x86.msu" ")

In my case this error occurs because both 'Program Files' and 'ProgramData' are on my E: drive, not C:

Even though I change all possible pointers to C:\Program*, the update seems to insist on C:\ProgramData, after moving ProgramData back to C: the update succeeded.

Even if that's not your problem, there should be an error in the event log that may help.

Related Question