PowerShell FAQ
  • Initial page
  • PowerShell Frequently Asked Questions
    • getting-started
      • How do I determine the location of the current PowerShell script?
      • How do I set the PATH in PowerShell?
      • How do I determine the current version of PowerShell?
      • How do I pass parameters to PowerShell scripts?
      • How do I fix "the execution of scripts is disabled on this system" errors?
    • learning-paths
      • Are there any free PowerShell ebooks?
      • Is there any free training for PowerShell
      • books-for-programmers
      • video-resources
      • books-for-newbies
    • frequently-asked-faq-questions
      • contributing
      • What's the license for this FAQ?
    • SUMMARY
    • justification
      • Why should I learn PowerShell?
Powered by GitBook
On this page

Was this helpful?

  1. PowerShell Frequently Asked Questions
  2. getting-started

How do I determine the current version of PowerShell?

The version of PowerShell is always available within PowerShell in the $PSVersionTable as the "PSVersion" property. As of PowerShell 5, there is also a "PSEdition" property (which is also available as it's own $PSEdition variable) to distinguish Windows PowerShell (the "Desktop" edition) from PowerShell Core (the "Core" edition).

PreviousHow do I set the PATH in PowerShell?NextHow do I pass parameters to PowerShell scripts?

Last updated 4 years ago

Was this helpful?