Lire en anglais

Partager via


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.

C#
public class PSVersionInfo
C#
public static class PSVersionInfo
Inheritance
PSVersionInfo

Constructors

Properties

PSEdition

Gets the edition of PowerShell.

PSVersion

Gets the version of PowerShell.

Applies to

Produit Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0