05-31-2009
Downloads: 2,041
File size: 285 B
Views: 10,527
Embed
 |
Get-PSVersion |
-
-
-
- function Get-PSVersion {
- if (test-path variable:psversiontable) {$psversiontable.psversion} else {[version]"1.0.0.0"}
- }
How do you check which version of PowerShell you are using? If the $PSVersionTable variable doesn't exist, then you are running V1. If it does exist, then the version will be available as $PSVersionTable.PSVersion.