PowerTip: Find PowerShell Version

PowerTip: Find PowerShell Version

  • Comments 9
  • Likes

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

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Does not work (Windows XP)

  • good!

  • just type host in the console and check the version

  • 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.

  • simple but helpful! Thanks

  • Open PowerShell and type host

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

  • Works fine in Windows 10.
    Just: $PSVersionTable

  • Get-Host | Format-List -Property ('version', 'name')

    Version : 4.0
    Name : Windows PowerShell ISE Host