Refer to the steps below on how to install PowerShell 5.1 & Core on Windows 7
- 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
- Download and install Microsoft .NET Framework 4.5.2
- Download and install PowerShell 5.1 for Windows 7 – Win7AndW2K8R2-KB3191566-x64.zip
- 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
- Download PowerShell Core 6.1 from Github
-
Install by accepting all the default value
- Download Visual Studio Code as PowerShell ISE can no longer be used for PowerShell Core
-
Enable PowerShell Extension in VS Code
- Change to PowerShell Core