PowerShell Logo Small

New-NetTransportFilter



This is the built-in help made by Microsoft for the command 'New-NetTransportFilter', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Creates a transport filters.

SYNTAX


New-NetTransportFilter [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-DestinationPrefix <String>] [-LocalPortEnd <UInt16>]
[-LocalPortStart <UInt16>] [-Protocol <Protocol>] [-RemotePortEnd <UInt16>] [-RemotePortStart <UInt16>] [-ThrottleLimit <Int32>] -SettingName
<String> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The New-NetTransportFilter cmdlet creates a transport filter. A transport filter determines how TCP settings from NetTcpSetting are applied to
an IP address prefix or a TCP port range.



<

RELATED LINKS

Get-NetTransportFilter
Remove-NetTransportFilter
Set-NetTCPSetting

REMARKS

<

Examples


EXAMPLE 1

PS C:\>New-NetTransportFilter –SettingName Datacenter –DestinationPrefix 192.168.0.0/16



This example creates a transport filter for the 192.168.0.0/16 network. The data center TCP settings will apply to all TCP connections that
are between the computer and other computers in this network.




EXAMPLE 2

PS C:\>Get-NetTransportFilter –SettingName Compat –LocalPortStart 5000 –LocalPortEnd 5000 –RemotePortStart 6000 –RemotePortEnd 6000



This example creates a transport filter for an app that needs conservative TCP settings to ensure compatibility.