Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Powershell 5.1 in Windows 2012 R2

I would like to install/upgrade powershell in my Windows 2012 R2 server. As default w2k12 have 4.0 powershell so I've downloaded Windows Management Framework 5.1 as file: W2K12-KB3191565-x64.msu When I run this - I'm getting error "The update is not applicable to your computer" - ok... researching google FOUND ...

I have to install full version of .NET Framework 4.5.2 - so ok.. Downloading dotNetFx45_Full_setup.exe and RUN.

Error: ""Microsoft .NET Framework 4.5 is already a part of this operating system. You do not need to install the .NET Framework 4.5 redistributable. Same or higher version of .NET Framework 4.5 has already been installed on this computer.:"

OK trying install Developer Version NDP452-KB2901951-x86-x64-DevPack.exe

Trying check if FULL is installed - (Get-ItemProperty -Path 'HKLM:\Software\Microsoft\NET Framework Setup\NDP\v4\Full' -ErrorAction SilentlyContinue).Version -like '4.5*' Still false

What is going on ? Why its that hard install latest powerhsell 5.1 in Windows 2012 ? :/

like image 963
Curl User Avatar asked Jun 12 '17 19:06

Curl User


People also ask

What version of PowerShell is on Server 2012 R2?

Windows PowerShell 3.0 and Windows PowerShell 4.0 require Windows Management Instrumentation 3.0 (WMI). This program is included in Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows Management Framework 4.0, and Windows Management Framework 3.0.

Is PowerShell 5.1 backwards compatible?

Windows PowerShell 5.1 is backward-compatible. Cmdlets, providers, modules, snap-ins, scripts, functions, and profiles that were designed for Windows PowerShell 4.0, Windows PowerShell 3.0, and Windows PowerShell 2.0 generally work in Windows PowerShell 5.1 without changes.

Is PowerShell 5 still supported?

PowerShell - Microsoft Lifecycle | Microsoft Learn. This browser is no longer supported. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.


1 Answers

Get the update at: https://www.microsoft.com/en-us/download/details.aspx?id=54616&ranMID=24542&ranEAID=TnL5HPStwNw&ranSiteID=TnL5HPStwNw-PY0rN6sxCyF8hlhQhRlodA&epi=TnL5HPStwNw-PY0rN6sxCyF8hlhQhRlodA&irgwc=1&OCID=AID2000142_aff_7593_1243925&tduid=(ir__biyzqumvw9kfrgvj0jd6oxxa1e2xjal2pedo1uo900)(7593)(1243925)(TnL5HPStwNw-PY0rN6sxCyF8hlhQhRlodA)()&irclickid=_biyzqumvw9kfrgvj0jd6oxxa1e2xjal2pedo1uo900

Then select the w2k 2012 R2 specific file name PowerShell5.1 for w2k2012R2:

like image 59
Juliano Pezzini Avatar answered Sep 20 '22 12:09

Juliano Pezzini