Download Powershell 5.0 For Windows 7

Posted onby

Today, we have republished the Windows Management Framework (WMF) 5.0 RTM packages for Windows Server 2012 R2, Windows Server 2012, Windows 2008 R2 SP1, Windows 8.1, and Windows 7 SP1 to Microsoft Download Center. Windows 7 and Windows Server 2008 R2 must have at Service Pack 1, and Windows Server 2008 requires Service Pack 2. There are a number of enhancements in Windows PowerShell 3.0 including workflow, new cmdlets, and improvement language features.

Download Powershell 5.0 For Windows 7 Free

Cloud Platform, dbDigger, PowerShell, System Administration, Windows 7

Updating powershell on windows 7

While working with Azure storage i was required to connect it through powershell. My machine is with windows 7 OS. Powershell version of windows 7 is 3.0 and minimum version to connect with Azure storage is 5.1.

I was required to update the powershell version so that it may be able to connect with Azure storage.

Following is the process to update powershell on windows 7 from version 3.0 to 5.1.

Process to update Powershell

We need to get Windows Management Framework from Microsoft Download Centre. I am not providing link of WMF current version here as it is expected to change later. As per its release notes

Windows Management Framework includes updates to Windows PowerShell, Windows PowerShell Desired State Configuration (DSC), Windows Remote Management (WinRM), Windows Management Instrumentation (WMI).

This will be our source to latest version of powershell. Download the zip file and extract it. Execute the provided .ps1 script with admin permissions. In following snapshot i accessed the unzipped folder and executed the Install-WMF5.1.ps1 file.

Warning for WMF update

Download powershell 5 for windows 7

update script is executed but you can see it generating a warning statement and ended in failure.

WARNING: WMF 5.1 is not supported when WMF 3.0 is installed.
C:UsersashehzadDownloadsWin7AndW2K8R2-KB3191566-x64Install-WMF5.1.ps1 : WMF 5.1 cannot be installed as
pre-requisites are not met. See Install and Configure WMF 5.1 documentation:

Outlook Express For Windows 7

Remove WMF 3.0

So leave the process at this point and uninstall the WMF 3.0 before we re execute the unzipped .ps1 file.

Go to the installed updates in “Programs and Features”.

Search for Windows Management Framework 3.0 and uninstall it. This is KB2506143.

Retry after WMF 3.0 removed

Once WMF 3.0 is uninstalled we can re execute the unzipped .ps1 script for deployment of WMF 5.1. WIndows update utility will be invoked to apply the update. This is KB3191566.

This time update was successful. And i can see the powershell version 5.1. Windows will require reboot both after removing WMF 3.0 and deploying WMF 5.1.

I am very excited that the PowerShell team has just delivered the April Preview that allows version 5 to run on Windows 7 SP1 and Server 2008 R2 (PowerShell Version 5.0.10105). For this preview version there are a few foibles to getting it running on Windows 7. The PowerShell team hopes to sort these out, but in the mean time I have put together a quick config that steps you though everything with one command line.

Windows 7 and Server 2008 R2 are the worst case scenarios and therefore are the focus of the below, however, all of these steps work for Server 2012, 2012 R2 and Windows 8.1 - they take fewer steps because they have more of the prerequisites.

Download Powershell 5.0 For Windows 7 64-bit

Here are the challenges in getting a Windows 7 or Server 2008 R2 machine to PowerShell 5:

  1. You must have SP1. If you are using source media that does not have it slipstreamed (like the downloadable Server 2008 R2 VHD), then you'll need to apply it before getting started.
  2. You must have .NET 3.5.1 or later to install PowerShell 4. However, the PowerShell 4 installer does not block you if you don't have it. It successfully installs and then when you reboot you are still on your previous version (2 or 3). You have to uninstall the PowerShell 4 Windows Update and then install .NET 4.5.1 and then reinstall PowerShell 4. If you use the quick config below - this is detected for you and you are instructed to issue a chocolatey command to easily pull .NET 4.5.1 onto your system.
  3. You must first install PowerShell / WMF 4 before you can install PowerShell / WMF 5. This is an interim dependency that the PowerShell team is planning to eliminate for the production release. However, 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. The below quick config also detects this situation and installs PowerShell 4 and instructs you to reboot and re-run the quick config.
  4. Finally you can install PowerShell 5.

The below quick config uses the Chocolatey package for PowerShell that I have updated 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 I have created and it will install chocolatey for you. You can just keep running it repeatedly to get PowerShell 5 on your system and then at the end you can optionally install the latest PowerShell dsc resources from

This quick config is intended for lab and test machines - it installs the Chocolatey package manager and sets your PowerShell execution policy to RemoteSigned.

You can see the complete source of the script before running here:

Here are the quick config steps:

  1. Open a PowerShell console as Administrator.
  2. Paste this command line into the console (one line):
    iex ((new-object net.webclient).DownloadString(''))
    If you receive an error that contains '...The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.' it's likely you are on PowerShell 2.0 and will need to use this longer command line (one line):
    [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {[bool]1};iex ((new-object net.webclient).DownloadString(''));[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {[bool]0}
  3. Each time the system reboots, re-run the above command line. In most cases two reboots wil get you to PowerShell 5 on Windows 7 SP1 or Server 2008 R2.
  4. On the last time you re-run it, you will be prompted whether to download all the latest versions of the DSC Resources on - this is optional and generally used for a lab machine for getting started with DSC.

If you find any problems with the quick config - be sure to send me a note.


The underlying connection was closed: Could not establish tru st relationship for the SSL/TLS secure channel.