Exciting news! Microsoft has released a preview for Windows Management Framework 5 (WMF) and PowerShell 5 for Windows Server 2008 R2 and Windows 7. In this post we will cover how to install both on your Windows Server 2008 R2 and Windows 7 systems. This is a preview version as of April 2015 so make sure this is not being installed on your production systems.
- Supported Operating System
- Windows 7, Windows 8.1, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2
- Windows Server 2012 R2
- Windows 8.1 Pro
- Windows 8.1 Enterprise
- Windows Server 2012
- Windows 7 SP1
- Windows Server 2008 R2 SP1
Systems that are running the following server applications should not run Windows Management Framework 5.0 at this time.
System Center 2012 Configuration Manager (not including SP1)
Windows Small Business Server 2011 Standard
WMF 5.0 requires Microsoft .NET Framework 4.5. You can install Microsoft .NET Framework 4.5 from the Microsoft Download Center.
Step 1 – Download the Code for WMF 5
Now that we know what the requirements are let’s get started. First step is to download WMF 5 and PowerShell 5 installation code. Start off with downloading WMF 5. You will want to select the package that applies to your architecture (x64 or x86) For x64 select Windows6.1-KB2908075-x64 and for x86 select Windows6.1-KB2908075-x86. Once you have it downloaded you can double-click and start the installation.
You must first install PowerShell / WMF 4 before you can install PowerShell / WMF 5. If you try to install PowerShell 5 without 4 present, you just get a standard Windows Update WUSA error “This Update is not applicable to your system” (Error: 2149842967 or 0x80240017). PowerShell 5 installs via one of the following windows updates:KB3055381, KB3055377 or KB2908075.
Step 2 – Get PowerShell 5
This step is a bit different as there is not an official package from Microsoft for PowerShell 5. The installation piece is available from a Chocolatey package provided by CSI-Windows.
The below quick config uses the Chocolatey package for PowerShell for the April preview. If you already know your way around Chocolatey, then you can simple keep re-running that package with -force until PowerShell 5 is on your system. Before you start you will need to have SP1 loaded and use “choco install -y dotnet4.5.1” to get the minimum .NET version installed. Then use “choco install -y powershell -pre -force” at least two times.
If you’ve never heard of Chocolatey, no problem. You can run a PowerShell script from a public github file that will install chocolatey for you. You can just keep running it to get PowerShell 5 on your system.
This quick config is intended for lab and test machines – it installs the Chocolatey package manager and sets your PowerShell execution policy to remote signed.
You can see the complete source of the script before running here: https://raw.githubusercontent.com/CSI-Windowscom/Bootstraps/master/QuickConfigPowerShell5.ps1.
We have covered Installing WMF 5 and PowerShell 5 on Windows 2008 R2 and Windows 7 on a test / lab machine in this post. Test and play with the new features and many changes that PowerShell 5 has to offer!