Get PowerShell version
16. April 2015
If you want to get your major PowerShell version run the following:
$PSVersionTable.PSVersion.Major
Result:
4
PowerShell Version: 4
Modules: none
If you want to get your major PowerShell version run the following:
$PSVersionTable.PSVersion.Major
Result:
4
PowerShell Version: 4
Modules: none