ReceivePSSessionCommand.Port 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.
Port specifies the alternate port to be used in case the default ports are not used for the transport mechanism (port 80 for http and port 443 for useSSL)
public:
property int Port { int get(); void set(int value); };
public:
property int Port { int get(); void set(int value); };
public int Port { get; set; }
[System.Management.Automation.Parameter(ParameterSetName="ComputerInstanceId")]
[System.Management.Automation.Parameter(ParameterSetName="ComputerSessionName")]
[System.Management.Automation.ValidateRange(1, 65535)]
public int Port { get; set; }
member this.Port : int with get, set
[<System.Management.Automation.Parameter(ParameterSetName="ComputerInstanceId")>]
[<System.Management.Automation.Parameter(ParameterSetName="ComputerSessionName")>]
[<System.Management.Automation.ValidateRange(1, 65535)>]
member this.Port : int with get, set
Public Property Port As Integer
Property Value
- Attributes
Remarks
Currently this is being accepted as a parameter. But in future support will be added to make this a part of a policy setting. When a policy setting is in place this parameter can be used to override the policy setting