PowerShell Version

To check PowerShell version, you can use $PSVersionTable command.

Check PowerShell Version

Basically, there are two different PowerShell versions which cling to its edition:

  • Desktop Edition
    This edition starts from PowerShell version 1 to 5.1. $PSVersionTable.PSEdition is set to Desktop. This version is built on top of .NET Framework.
  • Core Edition
    This edition starts from PowerShell >= 6. $PSVersionTable.PSEdition is set to Core. This version is built on top of .NET Core.