PSVersionInfo Class 
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encapsulates $PSVersionTable.
Provides a simple interface to retrieve details from the PowerShell version table:
PSVersionInfo.PSVersion;
  The above statement retrieves the PowerShell version.
PSVersionInfo.PSEdition;
  The above statement retrieves the PowerShell edition.
public class PSVersionInfopublic static class PSVersionInfotype PSVersionInfo = classPublic Class PSVersionInfo- Inheritance
- 
				PSVersionInfo
Constructors
| PSVersionInfo() | 
Properties
| PSEdition | Gets the edition of PowerShell. | 
| PSVersion | Gets the version of PowerShell. |