共用方式為


ReceivePSSessionCommand.Port Property

Definition

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

Applies to