![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Get PowerShell Version? How can I find out the powershell version to find out if it's RC or Final? |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Get PowerShell Version? Found Windows PowerShell under Windows XP - Software Updates. It would say RC if it was right? ydroam wrote: > How can I find out the powershell version to find out if it's RC or > Final? |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Get PowerShell Version? I put this in my profile: function Ver { get-host | select version } I was thinking this as well. There should be some text field beyond version that would explicitly show (CTP1, Beta1, Beta2, RTM, etc). The build numbers don't mean much as you have to track them down and figure it out each time. -- William Stacey [C# MVP] "ydroam" <ydroam@gmail.com> wrote in message news:1167238610.284412.185950@i12g2000cwa.googlegroups.com... | How can I find out the powershell version to find out if it's RC or | Final? | |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Get PowerShell Version? Even better ;p function Ver { $host.Version } On Dec 27, 12:23 pm, "William Stacey [C# MVP]" <william.sta...@gmail.com> wrote: > I put this in my profile: > function Ver { get-host | select version } > > I was thinking this as well. There should be some text field beyond version > that would explicitly show (CTP1, Beta1, Beta2, RTM, etc). The build > numbers don't mean much as you have to track them down and figure it out > each time. > > -- > William Stacey [C# MVP] > > "ydroam" <ydr...@gmail.com> wrote in messagenews:1167238610.284412.185950@i12g2000cwa.googlegroups.com... > | How can I find out the powershell version to find out if it's RC or > | Final? > | |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Get PowerShell Version? "ydroam" <ydroam@gmail.com> wrote in message news:1167238610.284412.185950@i12g2000cwa.googlegroups.com... > How can I find out the powershell version to find out if it's RC or > Final? OK since someone brought this up. Which is the more important/useful version number and in which context? 24> $host.Version Version ------- 1.0.0.0 25> (gcm "$PSHome\PowerShell.exe").FileVersionInfo.ProductVersion 6.0.5430.0 -- Keith |
My System Specs![]() |
| | #6 (permalink) |
| | Re: Get PowerShell Version? Good question. What is a file version? -- William Stacey [C# MVP] "Keith Hill [MVP]" <r_keith_hill@mailhot.moc.nospam> wrote in message news:OeeguseKHHA.4460@TK2MSFTNGP03.phx.gbl... | "ydroam" <ydroam@gmail.com> wrote in message | news:1167238610.284412.185950@i12g2000cwa.googlegroups.com... | > How can I find out the powershell version to find out if it's RC or | > Final? | | OK since someone brought this up. Which is the more important/useful | version number and in which context? | | 24> $host.Version | Version | ------- | 1.0.0.0 | | 25> (gcm "$PSHome\PowerShell.exe").FileVersionInfo.ProductVersion | 6.0.5430.0 | | -- | Keith | | |
My System Specs![]() |
| | #7 (permalink) |
| | Re: Get PowerShell Version? Hi, I wish a very Happy and Prosporous New Year to you all !! Most installers use fileversion while updating a binary (as part of a QFE). For example Windows update updates a binary only if the fileversion in QFE is greater than the one on disk :- 1. Lets say an assembly (x.dll) with fileversion 2.0.0.0 is installed on a machine. Lets say there are 2 QFEs available for x.dll binaray:- QFE1 x.dll's fileversion is 1.1.0.0 and QFE2 x.dll's fileversion is 2.1.0.0 Only QFE2 will update x.dll on the machine since its fileversion is greater than the one on the disk. For managed(CLR) assemblies there are 2 version numbers: AssemblyVersion and FileVersion. Assembly version is used by the CLR loader / linker. Installation technolgies might use both or just FileVersion. Which one is most important: It depends on the product you are working with and the scenarios. For PowerShell, you may never need to know the fileversion number. To distinguish between RC2 and RTM builds of Powershell use the following registry information: To check if PowerShell is installed use: HKLM\Software\Microsoft\PowerShell\1 Install ( = 1 ) To check if RC2 or RTM is installed use: HKLM\Software\Microsoft\PowerShell\1 PID (=89393-100-0001260-00301) -- For RC2 HKLM\Software\Microsoft\PowerShell\1 PID (=89393-100-0001260-04309) -- For RTM -- Krishna[MSFT] Windows PowerShell Team Microsoft Corporation This posting is provided "AS IS" with no warranties, and confers no rights. "William Stacey [C# MVP]" <william.stacey@gmail.com> wrote in message news:%23RDG59fKHHA.536@TK2MSFTNGP02.phx.gbl... > Good question. What is a file version? > > -- > William Stacey [C# MVP] > > "Keith Hill [MVP]" <r_keith_hill@mailhot.moc.nospam> wrote in message > news:OeeguseKHHA.4460@TK2MSFTNGP03.phx.gbl... > | "ydroam" <ydroam@gmail.com> wrote in message > | news:1167238610.284412.185950@i12g2000cwa.googlegroups.com... > | > How can I find out the powershell version to find out if it's RC or > | > Final? > | > | OK since someone brought this up. Which is the more important/useful > | version number and in which context? > | > | 24> $host.Version > | Version > | ------- > | 1.0.0.0 > | > | 25> (gcm "$PSHome\PowerShell.exe").FileVersionInfo.ProductVersion > | 6.0.5430.0 > | > | -- > | Keith > | > | > > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Re: help - cannot uninstall Powershell Version 1 | PowerShell | |||
| Powershell 2.0 final version? | PowerShell | |||
| PowerShell.hrc for Colorer, version 1.3.4 | PowerShell | |||
| PowerShell Leaders Join Forces and offer a pre-release version of PowerShell for 50% off the retail value | PowerShell | |||
| Where is Vista version of Powershell? | PowerShell | |||