PowerTip: Find PowerShell Version

Summary: Easily find your Windows PowerShell version.

Hey, Scripting Guy! Question Is there a single command I can use to find the version of Windows PowerShell I am running, plus the version of
          WSMan and the .NET Framework command-line reference (CLR)?

Hey, Scripting Guy! Answer Use the $PSVersionTable automatic variable to display the Windows PowerShell version,
          WSMan stack information, .NET Framework CLR version information, and other information:

PS C:\> $PSVersionTable

Comments (10)

  1. simple but helpful! Thanks

  2. AReader says:

    Does not work (Windows XP)

  3. Tanguy says:

    just type host in the console and check the version

  4. Omer.Nasr says:

    Use $PSVersionTable.PSVersion to determine the engine version. If the variable does not exist, it is safe to assume the engine is version 1.0.

  5. Joseph Alves says:

    Open PowerShell and type host

  6. dd says:

    Get-Mailbox -ResultSize Unlimited | Select DisplayName, WhenMailboxCreated, Database | Export-CSV C:mb_report.CSV –NoTyp

  7. Hugo says:

    Works fine in Windows 10.
    Just: $PSVersionTable

  8. psx says:

    Get-Host | Format-List -Property (‘version’, ‘name’)

    Version : 4.0
    Name : Windows PowerShell ISE Host

  9. Jonaxz says:

    Great starting