I have a VPS with PowerShell installed. How do I know if it's a RTM or CTP?
I ran $host.Version and I got :
Major Minor Build Revision
----- ----- ----- --------
2 0 -1 -1
WTF are the minus-one's? I've never seen negative numbers for any of a version fragments..
It seems that the more conventional way of getting the version number is using the $PSVersionTable which gives a build version value. Although
$PSVersionTable.PSVersion
gives me what you get.. Hmm -ve builds!!If it makes you feel any better, I'm running PS Version 2 RTM on Windows 7 and i get the same result as you. My $PSVersionTable.BuildVersion is 6.1.7600.16385 which is the same version number i get when i look at the product version on the powershell.exe with:
You can get a little more detailed information like this:
And
I would interpret the "-1" values as "not applicable".