Check Your PowerShell Version

If you’re wondering what PowerShell version you’re running, you can easily find this out using a built-in, “automatic variable” called $PSversionTable. For more information about automatic variables in PowerShell, run this command: Get-Help -Name about_Automatic_Variables.

PowerShell Version 5.0 Screenshot
PowerShell Version 5.0 Screenshot

Depending on what version of PowerShell you’re running, different features may or may not be available.

  • PowerShell Desired State Configuration (DSC) was introduced in PowerShell 4.0
  • PowerShell DSC Local Configuration Manager (LCM) 2.0 was introduced in PowerShell 5.0
  • PowerShell Remoting is supported in PowerShell 2.0 and later
  • PowerShell Workflow support was added in PowerShell version 3.0 and later
  • Where and ForEach method syntax was added in PowerShell 5.0

Check out the What’s New in Windows PowerShell article on MSDN, to learn more about the individual features that have been added or changed in different versions of PowerShell!