Set-NetTCPSetting
Set-NetTCPSetting
Modifies a TCP setting.
Syntax
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>]
Detaillierte Beschreibung
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.
Parameter
-AutomaticUseCustom<AutomaticUseCustom>
Specifies whether the automatic profile assigns a custom template, either Datacenter Custom or Internet Custom, to a connection. Die zulässigen Werte für diesen Parameter sind:
-- True
-- False
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
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.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
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.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
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. Die zulässigen Werte für diesen Parameter sind:
-- 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.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-CimSession<CimSession[]>
Das Cmdlet wird in einer Remotesitzung oder auf einem Remotecomputer ausgeführt. Geben Sie einen Computernamen oder ein Sitzungsobjekt ein, wie z. B. die Ausgabe eines New-CimSession oder Get-CimSession-Cmdlets. Der Standardwert ist die aktuelle Sitzung auf dem lokalen Computer.
Aliase |
Session |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-CongestionProvider<CongestionProvider>
Specifies the congestion provider property that TCP uses. Die zulässigen Werte für diesen Parameter sind:
-- 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).
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
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). Die zulässigen Werte für diesen Parameter sind:
-- True. TCP uses congestion window restart.
-- False. TCP uses the default setting of the connection.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-DelayedAckFrequency<Byte>
Specifies the number of acknowledgments (ACKs) received before the computer sends a response.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
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. Die zulässigen Werte für diesen Parameter sind: increments of 10, from 10 through 600.
Aliase |
DelayedAckTimeout |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
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.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-DynamicPortRangeStartPort<UInt16>
Specifies the starting port for the dynamic port range. This parameter sets the starting port to send and receive TCP traffic. Die zulässigen Werte für diesen Parameter sind: 1 through 65535.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-EcnCapability<EcnCapability>
Specifies whether to enable ECN capability. Die zulässigen Werte für diesen Parameter sind:
-- 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.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-ForceWS<ForceWS>
Specifies whether to force window scaling for retransmission. Die zulässigen Werte für diesen Parameter sind:
-- Enabled. Requires window scaling for retransmission.
-- Disabled. Does not require window scaling for retransmission.
The default value is Disabled.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-InitialCongestionWindowMss<UInt32>
Specifies the initial size of the congestion window. Provide a value to multiply by the maximum segment size (MSS). Die zulässigen Werte für diesen Parameter sind: even numbers from 2 through 64.
Aliase |
InitialCongestionWindow |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-InitialRtoMs<UInt32>
Specifies the period, in milliseconds, before connect, or SYN, retransmit. Die zulässigen Werte für diesen Parameter sind: increments of 10, from 300 ms through 3000 ms.
Aliase |
InitialRto |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-MaxSynRetransmissions<Byte>
Specifies the maximum number of times the computer sends SYN packets without receiving a response.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
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. Die zulässigen Werte für diesen Parameter sind:
-- 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.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-MinRtoMs<UInt32>
Specifies a value, in milliseconds, for the TCP retransmission to time out. Die zulässigen Werte für diesen Parameter sind: increments of 10, from 20 ms through 300 ms.
Aliase |
MinRto |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-NonSackRttResiliency<NonSackRttResiliency>
Specifies whether to enable round trip time resiliency for clients that do not support selective acknowledgment. Die zulässigen Werte für diesen Parameter sind:
-- Enabled
-- Disabled
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-PassThru
Gibt ein Objekt an, das das Element darstellt, mit dem Sie arbeiten. Dieses Cmdlet generiert standardmäßig keine Ausgabe.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-ScalingHeuristics<ScalingHeuristics>
Specifies whether to enable scaling heuristics. Die zulässigen Werte für diesen Parameter sind:
-- Enabled
-- Disabled
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-SettingName<String[]>
Specifies an array of setting names. You can specify only Custom for this parameter.
Aliase |
none |
Erforderlich? |
false |
Position? |
1 |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-ThrottleLimit<Int32>
Gibt die maximale Anzahl gleichzeitiger Vorgänge an, die zum Ausführen des Cmdlets hergestellt werden können. Wenn dieser Parameter ausgelassen wird oder der Wert 0
eingegeben wird, berechnet Windows PowerShell ® einen optimalen Drosselungsgrenzwert für das Cmdlet basierend auf der Anzahl der CIM-Cmdlets, die auf dem Computer ausgeführt werden. Der Grenzwert gilt nur für das aktuelle Cmdlet, nicht für die Sitzung oder den Computer.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
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). Die zulässigen Werte für diesen Parameter sind:
-- Enabled
-- Disabled
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-Confirm
Fordert Sie vor der Ausführung des Cmdlet zum Bestätigen auf.
Erforderlich? |
false |
Position? |
named |
Standardwert |
false |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-WhatIf
Zeit, was passieren würde, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.
Erforderlich? |
false |
Position? |
named |
Standardwert |
false |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
<CommonParameters>
Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer und -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
<WorkflowParameters>
Eingaben
Der Eingabetyp ist der Typ der Objekte, die Sie per Piping an das Cmdlet übergeben können.
Microsoft.Management.Infrastructure.CimInstance#root\StandardCimv2\MSFT_NetTCPSetting
Das
Microsoft.Management.Infrastructure.CimInstance
-Objekt ist eine Wrapperklasse, die Windows-Verwaltungsinstrumentation-Objekte (Windows Management Instrumentation, WMI) angezeigt. Der Pfad nach dem Nummernzeichen (#
) stellt den Namespace und den Klassennamen des zugrunde liegenden WMI-Objekts dar.
Ausgaben
Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.
- None
Beispiele
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