PowerShell Logo Small

New-NetTransportFilter



This is the built-in help made by Microsoft for the command 'New-NetTransportFilter', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 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 filter.

SYNTAX


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



Search powershellhelp.space

DESCRIPTION


The New-NetTransportFilter cmdlet creates a transport filter. A transport filter specifies the TCP settings, as a NetTcpSetting object, to apply to an IP address prefix or a
TCP port range. Specify the setting to apply by name. You can use the Set-NetTCPSetting to modify a setting.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=288397
Get-NetTransportFilter
Remove-NetTransportFilter
Set-NetTCPSetting

REMARKS

<

Examples


Example 1: Create a transport filter

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



This command creates a transport filter for the 192.168.0.0/16 network. The data center TCP settings applies to all TCP connections between the computer and other computers
in this network.




Example 2: Create a transport filter for an app

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



This command creates a transport filter for a compatibility setting. The command specifies port ranges for both local and remote computers.