Windows Server 2012 Power shell 5.1. installation failed

Michal 1 Reputation point
2021-05-05T12:16:17.643+00:00

Hello,
I am trying to install powershell version 5.1 on Windows Server 2012. Installation runs fine and prompts for restart to take effect. But after restart powershell version is still old. (v3)

I have tried to fix this by using commands: sfc /scannow
Dism /Online /Cleanup-Image /RestoreHealth

93910-cbs.log

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Anonymous
    2021-05-06T01:17:21.967+00:00

    Hi,

    Please make sure the .NET Framework 4.5.2 or above is installed. You can check it by running

    (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full").Release -ge 379893  
    

    https://learn.microsoft.com/en-us/powershell/scripting/windows-powershell/wmf/setup/install-configure
    https://learn.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed

    Best Regards,
    Ian Xue

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Michal 1 Reputation point
    2021-05-06T04:31:24.213+00:00

    Your command returns value True.

    0 comments No comments

  3. Michal 1 Reputation point
    2021-05-06T05:31:43.71+00:00

    I noticed, that there are some windows updates with status pending restart that i cannot install.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.