Install PowerShell 5.1 & Core on Windows 7

Refer to the steps below on how to install PowerShell 5.1 & Core on Windows 7

  1. Verify the PowerShell version installed
PS C:\Users\administrator> $PSVersionTable

Name                           Value
----                           -----
CLRVersion                     2.0.50727.8800
BuildVersion                   6.1.7601.17514
PSVersion                      2.0
WSManStackVersion              2.0
PSCompatibleVersions           {1.0, 2.0}
SerializationVersion           1.1.0.1
PSRemotingProtocolVersion      2.1
  1. Download and install Microsoft .NET Framework 4.5.2

  2. Download and install PowerShell 5.1 for Windows 7 – Win7AndW2K8R2-KB3191566-x64.zip

PS-PS2toPS51-01.jpg

  1. Restart the Windows 7 workstations and verify the PowerShell had been upgraded to 5.1 successfully
PS C:\Users\administrator> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.14409.1005
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14409.1005
CLRVersion                     4.0.30319.34209
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

PowerShell Core 6.1

  1. Download PowerShell Core 6.1 from Github
  2. Install by accepting all the default value

PSCore61-01.jpg

  1. Download Visual Studio Code as PowerShell ISE can no longer be used for PowerShell Core
  2. Enable PowerShell Extension in VS Code

PSCore61-02.jpg

  1. Change to PowerShell Core

PSCore61-03.jpg

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top