New-NetTransportFilter
New-NetTransportFilter
Creates a transport filter.
構文
Parameter Set: cim:CreateInstance0
New-NetTransportFilter -SettingName <String> [-CimSession <CimSession[]> ] [-DestinationPrefix <String> ] [-LocalPortEnd <UInt16> ] [-LocalPortStart <UInt16> ] [-Protocol <Protocol> {TCP | UDP} ] [-RemotePortEnd <UInt16> ] [-RemotePortStart <UInt16> ] [-ThrottleLimit <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>] [ <WorkflowParameters>]
詳細説明
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 cmdlet to modify a setting.
パラメーター
-CimSession<CimSession[]>
リモート セッションまたはリモート コンピューターでコマンドレットを実行します。コンピューター名またはセッション オブジェクト (New-CimSession コマンドレットや Get-CimSession コマンドレットの出力など) を入力します。既定値は、ローカル コンピューター上の現在のセッションです。
Aliases |
Session |
必須/オプション |
false |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
false |
ワイルドカード文字の受け入れ |
false |
-DestinationPrefix<String>
Specifies a destination prefix of an IP route. The cmdlet associates the transport filter that to the prefix that you specify. A destination prefix consists of an IP address prefix and a prefix length, separated by a slash (/).
Aliases |
none |
必須/オプション |
false |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
false |
ワイルドカード文字の受け入れ |
false |
-LocalPortEnd<UInt16>
Specifies the upper bound of a range of local TCP ports. The cmdlet assigns the upper bound that you specify to the transport filter. If you do not specify this parameter, the cmdlet uses the lower range value of 1025.
Aliases |
none |
必須/オプション |
false |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
false |
ワイルドカード文字の受け入れ |
false |
-LocalPortStart<UInt16>
Specifies the lower bound of a range of local TCP ports. The cmdlet assigns the lower bound that you specify to the transport filter. If you do not specify this parameter, the cmdlet uses the lower range value of 65535.
Aliases |
none |
必須/オプション |
false |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
false |
ワイルドカード文字の受け入れ |
false |
-Protocol<Protocol>
Specifies the type of routing protocol. The cmdlet assigns the protocol that you specify to the routing filter. このパラメーターに指定できる値は、次のとおりです。
-- Bbn
-- Bgp
-- Dhcp
-- Dvmrp
-- Egp
-- Eigrp
-- EsIs
-- Ggp
-- Hello
-- Icmp
-- Idpr
-- Igrp
-- IsIs
-- Local
-- NetMgmt
-- Ospf
-- Rip
-- Rpl
-- Other
Aliases |
none |
必須/オプション |
false |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
false |
ワイルドカード文字の受け入れ |
false |
-RemotePortEnd<UInt16>
Specifies the upper bound of a range of remote TCP ports. The cmdlet assigns the upper bound that you specify to the transport filter.
Aliases |
none |
必須/オプション |
false |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
false |
ワイルドカード文字の受け入れ |
false |
-RemotePortStart<UInt16>
Specifies the lower bound of a range of remote TCP ports. The cmdlet assigns the lower bound that you specify to the transport filter.
Aliases |
none |
必須/オプション |
false |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
false |
ワイルドカード文字の受け入れ |
false |
-SettingName<String>
Specifies a setting name. The cmdlet associates the setting that you specify to the transport filter. このパラメーターに指定できる値は、次のとおりです。
-- Internet
-- Datacenter
-- Compat
-- Custom
Aliases |
none |
必須/オプション |
true |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
false |
ワイルドカード文字の受け入れ |
false |
-ThrottleLimit<Int32>
コマンドレットを実行する際に確立できる同時実行操作の最大数を指定します。このパラメーターを省略するか、値 0
を入力した場合、コンピューター上で実行されている CIM コマンドレットの数に基づいて、コマンドレットに最適なスロットル制限が Windows PowerShell® によって計算されます。スロットル制限は、セッションやコンピューターではなく、現在のコマンドレットにのみ適用されます。
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>
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
- None
出力
出力型は、コマンドレットが出力するオブジェクトの型です。
Microsoft.Management.Infrastructure.CimInstance#root\StandardCimv2\MSFT_NetTransportFilter
Microsoft.Management.Infrastructure.CimInstance
オブジェクトは、Windows Management Instrumentation (WMI) オブジェクトを表示するラッパー クラスです。基になる WMI オブジェクトの名前空間とクラス名は、シャープ記号 (#
) に続くパスで指定されます。
使用例
Example 1: Create a transport filter
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.
PS C:\> New-NetTransportFilter –SettingName Datacenter –DestinationPrefix 192.168.0.0/16
Example 2: Create a transport filter for an app
This command creates a transport filter for a compatibility setting. The command specifies port ranges for both local and remote computers.
PS C:\> Get-NetTransportFilter –SettingName Compat –LocalPortStart 5000 –LocalPortEnd 5000 –RemotePortStart 6000 –RemotePortEnd 6000