PSSessionConfigurationCommandBase.PSVersion Property

Definition

Property corresponding to PSVersion parameter in the ConfigXML. This is treated as the minimum PowerShell version to load. This will allow existing endpoints creating during migration or upgrade that have PSVersion=2.0 to roll forward to PowerShell 3.0 automatically without changing the ConfigXML.

public:
 property Version ^ PSVersion { Version ^ get(); void set(Version ^ value); };
public Version PSVersion { get; set; }
[System.Management.Automation.Alias(new System.String[] { "PowerShellVersion" })]
[System.Management.Automation.Parameter(ParameterSetName="NameParameterSet")]
[System.Management.Automation.Parameter(ParameterSetName="AssemblyNameParameterSet")]
[System.Management.Automation.ValidateNotNullOrEmpty]
public Version PSVersion { get; set; }
member this.PSVersion : Version with get, set
[<System.Management.Automation.Alias(new System.String[] { "PowerShellVersion" })>]
[<System.Management.Automation.Parameter(ParameterSetName="NameParameterSet")>]
[<System.Management.Automation.Parameter(ParameterSetName="AssemblyNameParameterSet")>]
[<System.Management.Automation.ValidateNotNullOrEmpty>]
member this.PSVersion : Version with get, set
Public Property PSVersion As Version

Property Value

Attributes

Applies to