How to upgrade PowerShell version from 2.0 to 3.0

The OS I'm using is Windows 7, and the version of PowerShell installed here is 2.0. Can I upgrade it to version 3.0 or 4.0?

Because there are cmdlets that version 2.0 cannot recognize.

+101
powershell upgrade
Nov 11 '13 at 8:52
source share
7 answers

Download and install from http://www.microsoft.com/en-us/download/details.aspx?id=34595 . You need Windows 7 SP1 .

Keep in mind that PowerShell 3 on Windows 7 does not have all the cmdlets as PowerShell 3 on Windows 8. Therefore, you can still run into cmdlets that are not on your system.

+53
Nov 11 '13 at
source share

The latest version of PowerShell as of September 2015 is PowerShell 4.0 . It is associated with the Windows Management Framework 4.0.

This loads the PowerShelll 4.0 page for all versions of Windows. For Windows 7, there are 2 links on this page, 1 for x64 and 1 for x86.

enter image description here

+45
03 Sep '15 at 21:01
source share

Just run it in the console.

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin cinst powershell 

He installs the latest version using the Chocolatey repository.

I originally used the cinst powershell 3.0.20121027 , but it looks like it later stopped working. Since this question is related to PowerShell 3.0, this was the right way. At the moment (June 26, 2014) cinst powershell belongs to version 3.0 of PowerShell, and this may change in the future.

For more information about which version will be installed, see "Service Package> ChocolateS PowerShell Package >.

+31
Nov 11
source share
  • Install Chocolatey
  • Run the following commands in CMD

    • choco install powershell

    • choco upgrade powershell

+24
Feb 28 '17 at 6:56
source share

Today, Windows PowerShell 5.1 is the latest version. It can be installed as part of the Windows Management Framework 5.1. Released in January 2017.

Quoting from the official Microsoft download page here .

Some of the new and updated features in this release include:

  • Limited copying of files to / from JEA endpoints
  • JEA Support for Group Managed Service Accounts and Conditional Access Policies
  • PowerShell console support for VT100 and standard input redirection with interactive input
  • Support for catalog-signed modules in PowerShell Get
  • Specifying the version of the module to load in the script
  • Support for package management cmdlets for proxies
  • PowerShellGet Cmdlet Support for Proxies
  • PowerShell Script Debugging Enhancements
  • Required State Configuration Improvements (DSC)
  • Improved PowerShell Auditing Using Transcription and Logging
  • New and Updated Cmdlets Based on Community Feedback
+9
Feb 07 '17 at 17:01
source share

The latest version of PowerShell from August 2016 is PowerShell 5.1. Complete with Windows Management Framework 5.1.

Here's the download page for PowerShell 5.1 for all versions of Windows, including Windows 7 x64 and x86.

It is worth noting that PowerShell 5.1 is the first version available in two editions of "Desktop" and "Core". Powershell Core 6.x is cross-platform, its latest version for January 2019 is 6.1.2 . It also works on Windows 7 SP1 .

+1
Jan 21 '19 at 9:40
source share

use the links above. If you encounter the error "This update does not apply to your computer", make sure that you are really using the right file for your operating system. For example, I tried to start a Windows 2012 server using this link to Windows 7 Service Pack 1, and I got the above error, so be sure to use the correct zip code. If you don’t know which OS you have, go to startup and the system and it should pop up. It should be self-explanatory, but

0
May 17 '19 at 19:30
source share



All Articles