Set-NetTCPSetting

Set-NetTCPSetting

Modifies a TCP setting.

構文

Parameter Set: ByName
Set-NetTCPSetting [[-SettingName] <String[]> ] [-AutomaticUseCustom <AutomaticUseCustom> {Disabled | Enabled} ] [-AutoReusePortRangeNumberOfPorts <UInt16> ] [-AutoReusePortRangeStartPort <UInt16> ] [-AutoTuningLevelLocal <AutoTuningLevelLocal> {Disabled | HighlyRestricted | Restricted | Normal | Experimental} ] [-CimSession <CimSession[]> ] [-CongestionProvider <CongestionProvider> {Default | CTCP | DCTCP} ] [-CwndRestart <CwndRestart> {False | True} ] [-DelayedAckFrequency <Byte> ] [-DelayedAckTimeoutMs <UInt32> ] [-DynamicPortRangeNumberOfPorts <UInt16> ] [-DynamicPortRangeStartPort <UInt16> ] [-EcnCapability <EcnCapability> {Disabled | Enabled} ] [-ForceWS <ForceWS> {Disabled | Enabled} ] [-InitialCongestionWindowMss <UInt32> ] [-InitialRtoMs <UInt32> ] [-MaxSynRetransmissions <Byte> ] [-MemoryPressureProtection <MemoryPressureProtection> {Disabled | Enabled | Default} ] [-MinRtoMs <UInt32> ] [-NonSackRttResiliency <NonSackRttResiliency> {Disabled | Enabled} ] [-PassThru] [-ScalingHeuristics <ScalingHeuristics> {Disabled | Enabled} ] [-ThrottleLimit <Int32> ] [-Timestamps <Timestamps> {Disabled | Enabled} ] [-Confirm] [-WhatIf] [ <CommonParameters>] [ <WorkflowParameters>]

Parameter Set: InputObject (cdxml)
Set-NetTCPSetting [-AutomaticUseCustom <AutomaticUseCustom> {Disabled | Enabled} ] [-AutoReusePortRangeNumberOfPorts <UInt16> ] [-AutoReusePortRangeStartPort <UInt16> ] [-AutoTuningLevelLocal <AutoTuningLevelLocal> {Disabled | HighlyRestricted | Restricted | Normal | Experimental} ] [-CimSession <CimSession[]> ] [-CongestionProvider <CongestionProvider> {Default | CTCP | DCTCP} ] [-CwndRestart <CwndRestart> {False | True} ] [-DelayedAckFrequency <Byte> ] [-DelayedAckTimeoutMs <UInt32> ] [-DynamicPortRangeNumberOfPorts <UInt16> ] [-DynamicPortRangeStartPort <UInt16> ] [-EcnCapability <EcnCapability> {Disabled | Enabled} ] [-ForceWS <ForceWS> {Disabled | Enabled} ] [-InitialCongestionWindowMss <UInt32> ] [-InitialRtoMs <UInt32> ] [-MaxSynRetransmissions <Byte> ] [-MemoryPressureProtection <MemoryPressureProtection> {Disabled | Enabled | Default} ] [-MinRtoMs <UInt32> ] [-NonSackRttResiliency <NonSackRttResiliency> {Disabled | Enabled} ] [-PassThru] [-ScalingHeuristics <ScalingHeuristics> {Disabled | Enabled} ] [-ThrottleLimit <Int32> ] [-Timestamps <Timestamps> {Disabled | Enabled} ] [-Confirm] [-WhatIf] [ <CommonParameters>] [ <WorkflowParameters>]

詳細説明

The Set-NetTCPSetting cmdlet modifies a TCP setting. TCP settings are optimized for different network conditions including latency and congestion. To apply a TCP setting to a port number or destination IP address range, create a transport filter by using the New-NetTransportFilter cmdlet.

You can only modify the Custom TCP setting.

パラメーター

-AutomaticUseCustom<AutomaticUseCustom>

Specifies whether the automatic profile assigns a custom template, either Datacenter Custom or Internet Custom, to a connection. このパラメーターに指定できる値は、次のとおりです。

-- True
-- False

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-AutoReusePortRangeNumberOfPorts<UInt16>

Specifies the number of ports for the auto-reuse port range, which is a port range used for local ephemeral port selection by outbound TCP connections for which either SO_REUSE_UNICASTPORT has been set on the socket, or for which connect() has been called without calling bind() on the socket.

If you specify 0, the auto-reuse feature is disabled and ephemeral ports are drawn instead from the dynamic port range as specified by DynamicPortRangeStartPort and DynamicPortRangeNumberOfPorts, even if SO_REUSE_UNICASTPORT is set on a socket.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-AutoReusePortRangeStartPort<UInt16>

Specifies the number of ports for the auto-reuse port range, which is a port range used for local ephemeral port selection by outbound TCP connections for which either SO_REUSE_UNICASTPORT has been set on the socket, or for which connect() has been called without calling bind() on the socket.

If you specify 0, the auto-reuse feature is disabled and ephemeral ports are drawn instead from the dynamic port range as specified by DynamicPortRangeStartPort and DynamicPortRangeNumberOfPorts, even if SO_REUSE_UNICASTPORT is set on a socket.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-AutoTuningLevelLocal<AutoTuningLevelLocal>

Specifies a TCP auto-tuning level for the host computer. TCP auto-tuning can improve throughput on high throughput, high latency networks. このパラメーターに指定できる値は、次のとおりです。

-- Disabled. Sets the TCP receive window to the default value.
-- HighlyRestricted. Sets the TCP receive window to grow beyond the default value, but very conservatively.
-- Restricted. Sets the TCP receive window to grow beyond the default value, but less conservatively than HighlyRestricted.
-- Normal. Sets the TCP receive window to grow to accommodate almost all scenarios.
-- Experimental. Sets the TCP receive window to grow to accommodate extreme scenarios.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-CimSession<CimSession[]>

リモート セッションまたはリモート コンピューターでコマンドレットを実行します。コンピューター名またはセッション オブジェクト (New-CimSession コマンドレットや Get-CimSession コマンドレットの出力など) を入力します。既定値は、ローカル コンピューター上の現在のセッションです。

Aliases

Session

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-CongestionProvider<CongestionProvider>

Specifies the congestion provider property that TCP uses. このパラメーターに指定できる値は、次のとおりです。

-- CTCP. Compound TCP increases the receive window and amount of data sent. CTCP can improve throughput on higher latency connections.
-- DCTCP. Data Center TCP adjusts the TCP window based on network congestion feedback based on Explicit Congestion Notification (ECN) signaling. DCTCP may improve throughput on low latency links.
-- Default. Servers use DCTCP by default. Client computers use NewReno. For information about NewReno, see RFC 3782 (http://www.ietf.org/rfc/rfc3782.txt).

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-CwndRestart<CwndRestart>

Specifies whether to enable congestion window restart. Congestion window restart can avoid slow start to optimize throughput on low latency networks. For more information about congestion window restart, see RFC 2581 (http://www.ietf.org/rfc/rfc2581.txt). このパラメーターに指定できる値は、次のとおりです。

-- True. TCP uses congestion window restart.
-- False. TCP uses the default setting of the connection.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-DelayedAckFrequency<Byte>

Specifies the number of acknowledgments (ACKs) received before the computer sends a response.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-DelayedAckTimeoutMs<UInt32>

Specifies the time to wait, in milliseconds, before the computer sends an ACK if the computer receives fewer than delayed acknowledgment frequency of packets. Use the DelayedAckFrequency parameter to specify the delayed ACK frequency value. Reducing the time to wait can increase throughput on low latency networks by accelerating growth in TCP window size. このパラメーターに指定できる値は、次のとおりです。 increments of 10, from 10 through 600.

Aliases

DelayedAckTimeout

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-DynamicPortRangeNumberOfPorts<UInt16>

Specifies the number of ports for the dynamic port range that starts from the port that you specify for the DynamicPortRangeStartPort parameter.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-DynamicPortRangeStartPort<UInt16>

Specifies the starting port for the dynamic port range. This parameter sets the starting port to send and receive TCP traffic. このパラメーターに指定できる値は、次のとおりです。 1 through 65535.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-EcnCapability<EcnCapability>

Specifies whether to enable ECN capability. このパラメーターに指定できる値は、次のとおりです。

-- Enabled. Uses ECN capability.
-- Disabled. Does not use ECN capability.

If you specify a value of Disabled, UseECT0, or UseEct1 for the EcnMarking parameter of the Set-NetIPInterface cmdlet, the current parameter has no effect.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-ForceWS<ForceWS>

Specifies whether to force window scaling for retransmission. このパラメーターに指定できる値は、次のとおりです。

-- Enabled. Requires window scaling for retransmission.
-- Disabled. Does not require window scaling for retransmission.

The default value is Disabled.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-InitialCongestionWindowMss<UInt32>

Specifies the initial size of the congestion window. Provide a value to multiply by the maximum segment size (MSS). このパラメーターに指定できる値は、次のとおりです。 even numbers from 2 through 64.

Aliases

InitialCongestionWindow

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-InitialRtoMs<UInt32>

Specifies the period, in milliseconds, before connect, or SYN, retransmit. このパラメーターに指定できる値は、次のとおりです。 increments of 10, from 300 ms through 3000 ms.

Aliases

InitialRto

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-MaxSynRetransmissions<Byte>

Specifies the maximum number of times the computer sends SYN packets without receiving a response.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-MemoryPressureProtection<MemoryPressureProtection>

Specifies whether to use memory pressure protection. TCP memory pressure protection helps ensure that a computer continues normal operation when low on memory due to denial of service attacks. このパラメーターに指定できる値は、次のとおりです。

-- Enabled. When low on memory, during an attack, close existing TCP connections and drop incoming SYN requests.
-- Disabled. Do not use memory pressure protection.
-- Default. Use the computer default value for memory pressure protection.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-MinRtoMs<UInt32>

Specifies a value, in milliseconds, for the TCP retransmission to time out. このパラメーターに指定できる値は、次のとおりです。 increments of 10, from 20 ms through 300 ms.

Aliases

MinRto

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-NonSackRttResiliency<NonSackRttResiliency>

Specifies whether to enable round trip time resiliency for clients that do not support selective acknowledgment. このパラメーターに指定できる値は、次のとおりです。

-- Enabled
-- Disabled

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-PassThru

作業中の項目を表すオブジェクトを返します。既定では、このコマンドレットから出力は生成されません。

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-ScalingHeuristics<ScalingHeuristics>

Specifies whether to enable scaling heuristics. このパラメーターに指定できる値は、次のとおりです。

-- Enabled
-- Disabled

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-SettingName<String[]>

Specifies an array of setting names. You can specify only Custom for this parameter.

Aliases

none

必須/オプション

false

位置

1

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-ThrottleLimit<Int32>

コマンドレットを実行する際に確立できる同時実行操作の最大数を指定します。このパラメーターを省略するか、値 0 を入力した場合、コンピューター上で実行されている CIM コマンドレットの数に基づいて、コマンドレットに最適なスロットル制限が Windows PowerShell® によって計算されます。スロットル制限は、セッションやコンピューターではなく、現在のコマンドレットにのみ適用されます。

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-Timestamps<Timestamps>

Specifies whether to enable timestamps. Timestamps facilitate round trip measurement, and can help protect against wrapped sequence numbers on high throughput links. For more information about TCP timestamps, see RFC 1323 (http://www.ietf.org/rfc/rfc1323.txt). このパラメーターに指定できる値は、次のとおりです。

-- Enabled
-- Disabled

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-Confirm

コマンドレットを実行する前に確認メッセージを表示します。

必須/オプション

false

位置

named

既定値

false

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-WhatIf

コマンドレットが実行された場合に何が起きるのかを示します。コマンドレットは実行されません。

必須/オプション

false

位置

named

既定値

false

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

<CommonParameters>

このコマンドレットは共通のパラメーターをサポートしています(-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、および -OutVariable)。詳細については、TechNet の「 「about_CommonParameters」 (https://go.microsoft.com/fwlink/p/?LinkID=113216) を参照してください。

<WorkflowParameters>

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • Microsoft.Management.Infrastructure.CimInstance#root\StandardCimv2\MSFT_NetTCPSetting

    Microsoft.Management.Infrastructure.CimInstance オブジェクトは、Windows Management Instrumentation (WMI) オブジェクトを表示するラッパー クラスです。基になる WMI オブジェクトの名前空間とクラス名は、シャープ記号 (#) に続くパスで指定されます。

出力

出力型は、コマンドレットが出力するオブジェクトの型です。

  • None

使用例

Example 1: Change the custom TCP setting

This command changes the custom TCP setting to have a value of 6 for the initial congestion window and use compound TCP.

PS C:\> Set-NetTCPSetting –SettingName "Custom" –CongestionProvider CTCP –InitialCongestionWindowMss 6 

関連項目

Get-NetTCPSetting

Get-NetTransportFilter

Get-NetUDPSetting

New-NetTransportFilter

Remove-NetTransportFilter

Set-NetUDPSetting