Installing PowerShell 3.0 on Windows Server 2008 R2 SP1

Hello again. This morning I wanted to install PowerShell 3.0 version on Windows Server 2008 R2 SP1 because I needed to run some extra commands which were not present in Powershell 2.0. Usually, this goes pretty much easy, but today it wasn’t a case. But lets start from the beginning shall we?

Powershell 3.0 requirements

Before we start, first we need to make sure that we have all these pre-requisites for installing Powershell 3.0:

  1. Windows Server 2008 R2 SP1 OS installed (in our case this OS, but PowerShell 3.0 can be installed also on Windows 7 and Windows Server 2008 as well)
  2. installed a full version of .NET 4.0
  3. Installed Windows Management Framework 3.0 (WMN 3.0)
  4. You have English Language Pack (if you have a non-English version, make sure you first install the English language Pack).

OK, so if you meet all these pre-requirements, that means that you are ready for PowerShell 3.0 installation on Windows Server 2008 R2 SP1.

Also check: Internet Explorer Version Check via PowerShell

PowerShell 3.0 necessary files download

Alright, you can find all Powershell requirements on Microsoft web site here: Powershell 3.0 on Windows Server 2008 R2 SP1 requirements

We need to download two files: .NET Framework 4.0 and Windows Management Network 3.0

.NET Framework 4.0

Windows Management Framework 3.0

The correct web installation file in our case is: Windows6.1-KB2506143-x64.msu

 

Please, download this file and save it on Desktop.

Powershell 3.0 - Save to Desktop

.NET Framework Installation

If you do not have .NET Framework 4.0 installed (or if you have a previous version), please run the Web Installer and install it on your system. Web installer will download necessary files and install .NET Framework 4.0 on your system. If it asks for a reboot, do it.

In my case, for some reason, I didn’t have PowerShell 3.0 installed on Windows Server 2008 R2, even though it was configured to do so during the initial OS installation.

I have checked Regedit: HKLM\Software\Microsoft\PowerShell – and have found that I have only one folder in there (1), but should have also folder (3).

Powershell 3.0 - Registry check

I have checked NET Framework folder in Regedit as well, but to my surprise, v4.0 (which indicates that there is .NET Framework 4.0 present in OS) was there.

So this means that I already had .NET Framework 4.0, so there was no need for me to install it.

I have left only with WMN 3.0 to be installed.

Windows Management Network 3.0 Installation

I have ran the Windows Update Standalone Installer file, and it asked me if I want to install this file. I said YES of course:

Powershell 3.0 - Run the installer

Just click on Accept to continue with the installation:

Powershell 3.0 - Accept button

It will prompt you do restart OS one more time. Do it:

Powershell 3.0 - restart OS

After the host is back online, please login into it, open PowerShell console and run $host in it.

You should have listed a version of the Powershell, which I hope, it would be PowerShell 3.0 🙂

Powershell 3.0 - Version check

or in Registry HKLM\Software\Microsoft\PowerShell:

Powershell 3.0 - Version in registry

And that is it. You can now use Powershell 3.0 in Windows Server 2008 R2 SP1. Enjoy 🙂

Quick tip: If you want to open PowerShell ISE on Windows 8 or Windows Server 2012 machine, it is installed by default, but not visible.

The thing is that PowerShell ISE could be found in Administrative tools. Just pin it to a Start panel and you are good to go.

2 thoughts on “Installing PowerShell 3.0 on Windows Server 2008 R2 SP1

  1. Pingback: Internet Explorer Version Check via PowerShell - Vlad's IT Blog

  2. Pingback: Windows Management Framework 3.0 Installation Error