PowerTip: Identify PowerShell Version


Summary: Learn how to easily find the version of Windows PowerShell, CLR, and WSMan.

Hey, Scripting Guy! Question How can I use Windows PowerShell to identify the version of Windows PowerShell that is running on my system?

Hey, Scripting Guy! Answer Use the $PSversionTable automatic variable (you can use Tab expansion to avoid some typing).
           The command and output are shown here:

Image of command output

Comments (5)

  1. James A. Brown says:

    $PSVersionTable.PSVersion to get just the PowerShell version without the extraneous data.

    $PSV.P is the most keystroke-efficient method, totalling just eight keystrokes.

  2. James A. Brown says:

    The comment software snipped out my formatting.

    $PSV TAB .P TAB equals eight keystrokes

  3. How to navigate blog? says:

    I apologize in advance for this way, way off-topic question, but I’m darned if I can figure out how to navigate this blog.

    Say I search to find something I’m interested in. A resulting article may contain the phrase "In this third article in a series of six…". I can’t find any way to get to the previous or next blog entries without having to go back and do another search.

    Learn PowerShell? I can’t even navigate the site!

    1. if you see third in the series of 6, look at the date the blog was written, then look on the right side of the screen you will see the Archive. go to the month and year the blog was written and work your way thru that month of blogs. when you find the one you are reading there should be the other 5 before and after the one you are reading.

  4. Anonymous says:

    ‘Get-Host’ for the win. $PSVersionTable doesn’t work on *all* versions of PowerShell, and that can make discovery a problem. $(Get-Host).Version works every time.

Skip to main content