none
how check Powershell Version ?

    Question

  • Hi...all

    I installed SQL Server 2008 Dev edition on XP sp3.(It Installs WPS)

    I am very much new to PS..I started testing my Installation.

    For example, I typed Get-PS and press the Tab key , 
    the following cmdlets are appearing

    Get-PSDrive
    Get-PSProvider
    Get-PSSnapin

    But It suppose to show below list 

    ❑ Get-PSBreakpoint
    ❑ Get-PSCallStack
    ❑ Get-PSDrive
    ❑ Get-PSProvider
    ❑ Get-PSSession
    ❑ Get-PSSessionConfiguration
    ❑ Get-PSSnapin

    Why some other cmdlets are missing...Help me how to resolve and how check the Present version of WPS.

    Thanks in Advance




    SNIVAS
    Tuesday, December 15, 2009 3:13 PM

Answers

  • On Tue, 15-Dec-09 15:26:42 GMT, Karl Mitschke wrote:

    >To find the PowerShell version, in PowerShell, type the following command:Get-Host

    Actually - that's not quite right - Get-Host just shows you the
    version of the host (i.e. of Console.Exe). To see the version of
    PowerShell, use the built in variable: $PSVersionTable.


    Thomas

    Thomas Lee - doctordns@gmail.com
    Tuesday, December 22, 2009 6:41 PM
  • To find the PowerShell version, in PowerShell, type the following command:

    Get-Host

    Karl
    http://unlockpowershell.wordpress.com
    • Marked as answer by SNIVAS Tuesday, December 15, 2009 4:17 PM
    Tuesday, December 15, 2009 3:26 PM

All replies

  • To find the PowerShell version, in PowerShell, type the following command:

    Get-Host

    Karl
    http://unlockpowershell.wordpress.com
    • Marked as answer by SNIVAS Tuesday, December 15, 2009 4:17 PM
    Tuesday, December 15, 2009 3:26 PM
  • Thanks Karl

    here info

    Name             : ConsoleHost
    Version          : 1.0.0.0
    InstanceId       : 741ad976-f940-4df3-9d86-d8f0a01d7720
    UI               : System.Management.Automation.Internal.Host.InternalHostUserI
                       nterface
    CurrentCulture   : en-US
    CurrentUICulture : en-US
    PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy

    so that I need to Upgrade to 2.0...How to upgrade nay suggestions...?

    SNIVAS
    Tuesday, December 15, 2009 3:58 PM
  • Go here:

    http://support.microsoft.com/kb/968929

    Look for the section "Windows Management Framework Core (WinRM 2.0 and Windows PowerShell 2.0)" and download the version for XP.

    I’ve been asked, and I've seen the answer, but I cannot remember if you need to uninstall version 1 first.

    I'm tempted to say you don't

    Karl


    http://unlockpowershell.wordpress.com
    Tuesday, December 15, 2009 4:05 PM
  • On Tue, 15-Dec-09 15:26:42 GMT, Karl Mitschke wrote:

    >To find the PowerShell version, in PowerShell, type the following command:Get-Host

    Actually - that's not quite right - Get-Host just shows you the
    version of the host (i.e. of Console.Exe). To see the version of
    PowerShell, use the built in variable: $PSVersionTable.


    Thomas

    Thomas Lee - doctordns@gmail.com
    Tuesday, December 22, 2009 6:41 PM
  • I stand (well, sit) corrected :)

    Karl
    http://unlockpowershell.wordpress.com
    Tuesday, December 22, 2009 10:45 PM
  • Thomas,

    This was very helpful.  I was one of the folks who used to use Get-Host which worked fine until you try to run get-host from a remote session.

    -rm

    Monday, September 17, 2012 6:36 PM
  • I wish Thomas Lee was still participating here.
      - Larry
     
    On 9/17/2012 1:36 PM, Robert McDonnell wrote:
    > Thomas,
    >
    > This was very helpful. I was one of the folks who used to use Get-Host which worked fine until you
    > try to run get-host from a remote session.
    >
    > -rm
    >
     
     
    Monday, September 17, 2012 6:59 PM
  • You can also get the version in one line for a script like this:

    $host.version


    ---
    tompa
    http://tompaps.blogspot.com

    Friday, January 25, 2013 10:44 AM
  • I wish Thomas Lee was still participating here.
      - Larry
     

    I do Larry - from time to time. But I find the web so painful and slow to use I spend less time here than I used to spend in the old newsgroups. ANd sadly, Microsoft's latest OSs have killed my favourite NNTP client (it was IE based and they changed IE64 to the point where it broke Turnpike). OH well


    Thomas Lee <DoctorDNS@Gmail.Com>

    Friday, January 25, 2013 2:45 PM
  • You can also get the version in one line for a script like this:

    $host.version


    ---
    tompa
    http://tompaps.blogspot.com

    This ONLY gets the version of teh PowerShell Host, not the version of PowerShell itself. Use $psverstiontable variable instead!

    Thomas Lee <DoctorDNS@Gmail.Com>

    • Proposed as answer by Dipsu Saturday, September 07, 2013 11:42 AM
    Friday, January 25, 2013 2:46 PM
  • Hi Thomas,

    that variable is empty for me. But this one is always a good way to see what the version is :)

    (get-item C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe).versioninfo


    ---
    tompa
    http://tompaps.blogspot.com

    Friday, January 25, 2013 3:56 PM
  • if you are using Powershell 3.0 then you may also try using $pversiontable command.


    http://www.arabitpro.com

    Saturday, June 29, 2013 12:23 PM
  • PS C:\> $host.Version

    Major  Minor  Build  Revision
    -----  -----  -----  --------
    3      0      -1     -1

    Thanks, jeevan

    Monday, July 08, 2013 5:18 PM

  • (((gcm powershell).FileVersionInfo).FileVersion -split ' ')[0]

    on my workstations will produce

    6.1.7600.16385
    for PowerShell 2.0

    6.2.9200.16398
    for PowerShell 3.0

    • Proposed as answer by Daniel_Buzz Sunday, July 14, 2013 8:04 AM
    • Unproposed as answer by Daniel_Buzz Sunday, July 14, 2013 8:10 AM
    Monday, July 08, 2013 11:57 PM
  • Aaaaaargh! Does anyone else find it completely ridiculous that there are 50 different almost-answers on how to GET THE VERSION of PowerShell?! Just get the version.  Like "java -version", or "perl -version"...come on!

    • Edited by Daniel_Buzz Sunday, July 14, 2013 8:14 AM tone
    Sunday, July 14, 2013 8:07 AM
  • As posted higher up already: $psversiontable | Format-Table

    $psversiontable.version = 2.0

    on Windows 8 or server2012, you will see 3.0 :-) I just double-checked, Note that this is the default, while it is still possible to run posh V2 engine on systems where V3 is installed!


    (See http://stackoverflow.com/questions/1825585/how-to-determine-what-version-of-powershell-is-installed)
    • Edited by Conrad Braam Tuesday, September 10, 2013 5:18 PM
    Tuesday, September 10, 2013 5:16 PM
  • I get the same output whether I use $psversiontable or $psversiontable | Format-Table. What am I missing?

    Steve


    Wednesday, May 21, 2014 10:09 PM