It was a long day and we finally got some useful information about all the different versions of PowerShell.
You can use either the $PSVersionTable or long line that possibly accomplished the same result:
Now, here the list I compile with the help of one of the PowerShell MVP’s:
I Added the following versions using $PSVersionTable :
2.0 RTM (on Vista): 6.0.6002.18139
2.0 RTM (on Windows Server 2003): 6.0.6002.18111
2.0 RTM (on Windows Server 2008 SP2): 6.0.6002.18111
The following was provided by PowerShell MVP – Oisin Grehan:
ps> ([psobject].assembly.getcustomattributes([reflection.assemblyfileversionattribute], $false)).version
2.0 CTP2: 6.1.6585.1
2.0 CTP3: 6.1.6949.0
2.0 RC (WIN7): 6.1.7100.0
2.0 RTM (on win7): 6.1.7600.16385
Another PowerShell MVP contributing – Aleksandar Nikolic THANKS!
2.0 RTM (on WinXP): 6.0.6002.18111
By the way, there’s a possibility that you won’t be able to use PS Remoting between V1 and V2 but I haven’t had the chance to test this scenario.
Well, I hope this information help you in the quest of identifying who have PowerShell CTP’s installed.