PSSessionConfigurationCommandBase.PSVersion Property
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.
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