Compartir a través de


PSVersionInfo Class

Definition

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 PSVersionInfo
public static class PSVersionInfo
type PSVersionInfo = class
Public Class PSVersionInfo
Inheritance
PSVersionInfo

Constructors

PSVersionInfo()

Properties

PSEdition

Gets the edition of PowerShell.

PSVersion

Gets the version of PowerShell.

Applies to