New-NetQosPolicy
New-NetQosPolicy
Creates a new network Quality of Service (QoS) policy.
구문
Parameter Set: ByIP5Tuple
New-NetQosPolicy [-Name] <String> [-AppPathNameMatchCondition <String> ] [-AsJob] [-CimSession <CimSession[]> ] [-DSCPAction <SByte> ] [-IPDstPortEndMatchCondition <UInt16> ] [-IPDstPortMatchCondition <UInt16> ] [-IPDstPortStartMatchCondition <UInt16> ] [-IPDstPrefixMatchCondition <String> ] [-IPProtocolMatchCondition <Protocol> ] [-IPSrcPortEndMatchCondition <UInt16> ] [-IPSrcPortMatchCondition <UInt16> ] [-IPSrcPortStartMatchCondition <UInt16> ] [-IPSrcPrefixMatchCondition <String> ] [-MinBandwidthWeightAction <Byte> ] [-NetworkProfile <NetworkProfile> ] [-PolicyStore <String> ] [-Precedence <UInt32> ] [-PriorityValue8021Action <SByte> ] [-ThrottleLimit <Int32> ] [-ThrottleRateActionBitsPerSecond <UInt64> ] [-UserMatchCondition <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: ByCluster
New-NetQosPolicy [-Name] <String> -Cluster [-AsJob] [-CimSession <CimSession[]> ] [-DSCPAction <SByte> ] [-MinBandwidthWeightAction <Byte> ] [-NetworkProfile <NetworkProfile> ] [-PolicyStore <String> ] [-Precedence <UInt32> ] [-PriorityValue8021Action <SByte> ] [-ThrottleLimit <Int32> ] [-ThrottleRateActionBitsPerSecond <UInt64> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: ByDefault
New-NetQosPolicy [-Name] <String> -Default [-AsJob] [-CimSession <CimSession[]> ] [-DSCPAction <SByte> ] [-MinBandwidthWeightAction <Byte> ] [-NetworkProfile <NetworkProfile> ] [-PolicyStore <String> ] [-Precedence <UInt32> ] [-PriorityValue8021Action <SByte> ] [-ThrottleLimit <Int32> ] [-ThrottleRateActionBitsPerSecond <UInt64> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: ByFCOE
New-NetQosPolicy [-Name] <String> -FCOE -PriorityValue8021Action <SByte> [-AsJob] [-CimSession <CimSession[]> ] [-NetworkProfile <NetworkProfile> ] [-PolicyStore <String> ] [-Precedence <UInt32> ] [-ThrottleLimit <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: ByIPWellKnownPort
New-NetQosPolicy [-Name] <String> -IPPortMatchCondition <UInt16> [-AppPathNameMatchCondition <String> ] [-AsJob] [-CimSession <CimSession[]> ] [-DSCPAction <SByte> ] [-IPProtocolMatchCondition <Protocol> ] [-MinBandwidthWeightAction <Byte> ] [-NetworkProfile <NetworkProfile> ] [-PolicyStore <String> ] [-Precedence <UInt32> ] [-PriorityValue8021Action <SByte> ] [-ThrottleLimit <Int32> ] [-ThrottleRateActionBitsPerSecond <UInt64> ] [-UserMatchCondition <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: ByISCSI
New-NetQosPolicy [-Name] <String> -iSCSI [-AsJob] [-CimSession <CimSession[]> ] [-DSCPAction <SByte> ] [-MinBandwidthWeightAction <Byte> ] [-NetworkProfile <NetworkProfile> ] [-PolicyStore <String> ] [-Precedence <UInt32> ] [-PriorityValue8021Action <SByte> ] [-ThrottleLimit <Int32> ] [-ThrottleRateActionBitsPerSecond <UInt64> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: ByLiveMigration
New-NetQosPolicy [-Name] <String> -LiveMigration [-AsJob] [-CimSession <CimSession[]> ] [-DSCPAction <SByte> ] [-MinBandwidthWeightAction <Byte> ] [-NetworkProfile <NetworkProfile> ] [-PolicyStore <String> ] [-Precedence <UInt32> ] [-PriorityValue8021Action <SByte> ] [-ThrottleLimit <Int32> ] [-ThrottleRateActionBitsPerSecond <UInt64> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: ByNetworkDirectPort
New-NetQosPolicy [-Name] <String> -NetDirectPortMatchCondition <UInt16> -PriorityValue8021Action <SByte> [-AsJob] [-CimSession <CimSession[]> ] [-NetworkProfile <NetworkProfile> ] [-PolicyStore <String> ] [-Precedence <UInt32> ] [-ThrottleLimit <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: ByNFS
New-NetQosPolicy [-Name] <String> -NFS [-AsJob] [-CimSession <CimSession[]> ] [-DSCPAction <SByte> ] [-MinBandwidthWeightAction <Byte> ] [-NetworkProfile <NetworkProfile> ] [-PolicyStore <String> ] [-Precedence <UInt32> ] [-PriorityValue8021Action <SByte> ] [-ThrottleLimit <Int32> ] [-ThrottleRateActionBitsPerSecond <UInt64> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: BySMB
New-NetQosPolicy [-Name] <String> -SMB [-AsJob] [-CimSession <CimSession[]> ] [-DSCPAction <SByte> ] [-MinBandwidthWeightAction <Byte> ] [-NetworkProfile <NetworkProfile> ] [-PolicyStore <String> ] [-Precedence <UInt32> ] [-PriorityValue8021Action <SByte> ] [-ThrottleLimit <Int32> ] [-ThrottleRateActionBitsPerSecond <UInt64> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: ByURI
New-NetQosPolicy [-Name] <String> -URIMatchCondition <String> [-AsJob] [-CimSession <CimSession[]> ] [-DSCPAction <SByte> ] [-IPDstPrefixMatchCondition <String> ] [-NetworkProfile <NetworkProfile> ] [-PolicyStore <String> ] [-Precedence <UInt32> ] [-ThrottleLimit <Int32> ] [-ThrottleRateActionBitsPerSecond <UInt64> ] [-URIRecursiveMatchCondition <Boolean> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
자세한 설명
The New-NetQosPolicy cmdlet creates a new network Quality of Service (QoS) policy. A QoS policy consists of two main parts: match conditions also known as filters, and actions. Match conditions such as the name by which an application is run in Windows Server® 2012 and later or a TCP port number decide to what traffic the policy is relating. Parameters such as DSCPAction and ThrottleRateAction determine how the policy is to handle the matched traffic. Besides match conditions and actions, there are also some general parameters such as NetworkProfile and Precedence that the users can customize for a QoS policy.
A list of well-known match conditions, or filters, in the form of parameters is provided: FCoE, Cluster (3343
),LiveMigration (6600
), iSCSI (3260
), NFS (2049
), and SMB (445
). Each of them matches a well-known TCP port specified in the brackets. The only exception is FCoE, which matches EtherType 0x8906
. These filters must be used alone for filtering purpose. In other words, they cannot be mixed with other match condition parameters.
QoS policies can be stored in multiple locations. Users can choose a location by specifying the PolicyStore parameter. If the PolicyStore parameter is not specified, then the new policy is added to local computer (localhost). If a policy is stored in ActiveStore, then the policy will not persist after reboot.
매개 변수
-AppPathNameMatchCondition<String>
Specifies the name by which an application is run, such as application.exe
or %ProgramFiles%\application.exeapplication
.
별칭 |
AppPathName,ApplicationName,app |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-AsJob
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-CimSession<CimSession[]>
원격 세션에서 또는 원격 컴퓨터에서 cmdlet을 실행합니다. New-CimSession 또는 Get-CimSession cmdlet의 출력과 같은 컴퓨터 이름이나 세션 개체를 입력합니다. 기본값은 로컬 컴퓨터의 현재 세션입니다.
별칭 |
Session |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-Cluster
Specifies Microsoft’s cluster service, which uses the default SQL server TCP/UDP port 3343.
별칭 |
없음 |
필수 여부 |
true |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-Default
Specifies a wildcard filter that can be used to capture all traffic that is not matched by any other filter. One use case is that a user can create a QoS policy for a specific application using the AppPathNameMatchCondition parameter and create another QoS policy for all other applications using this parameter. Another use case is that a user can create several QoS policies, each of which specifies a minimum bandwidth action for the filtered traffic, and create one additional policy using this parameter to assign a minimum bandwidth action for all other traffic.
별칭 |
없음 |
필수 여부 |
true |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-DSCPAction<SByte>
Specifies the differentiated services code point (DSCP) value. 이 매개 변수에 허용되는 값은 다음과 같습니다. 0 through 63.
별칭 |
DSCPValue,DSCP |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-FCOE
Specifies the Fibre Channel over Ethernet (FCoE), which uses a dedicated EtherType 0x8914
. If this parameter is specified, then the Windows Server® 2012 and later will instruct the network adapters in the computer that support FCoE to match the FCoE packets and apply the action specified in the policy.
별칭 |
없음 |
필수 여부 |
true |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-IPDstPortEndMatchCondition<UInt16>
Specifies the last port in a range of destination ports to be used to match the network traffic. This parameter must be used in conjunction with the IPDstPortStartMatchCondition parameter. The value of this parameter also must be larger than the value of the IPDstPortStartMatchCondition parameter.
별칭 |
IPDstPortEnd |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-IPDstPortMatchCondition<UInt16>
Specifies the exact destination port to be used to match the network traffic. The filter of a QoS policy can be based on either a single port or a range of ports. To specify a single destination port, use this parameter. To specify a range of destination ports, use both the IPDstPortStartMatchCondition and the IPDstPortEndMatchCondition parameters.
별칭 |
IPDstPort,DestinationPort,dp,dstport,destport |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-IPDstPortStartMatchCondition<UInt16>
Specifies the first port in a range of destination ports to be used to match the network traffic. This parameter must be used in conjunction with the IPDstPortEndMatchCondition parameter. The value of this parameter also must be smaller than the value of the IPDstPortEndMatchCondition parameter.
별칭 |
IPDstPortStart |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-IPDstPrefixMatchCondition<String>
Specifies the destination IP address, optionally with a network prefix, such as 1.2.3.4
, 3ffe:ffff::1
, 192.168.1.0/24
, or fe80::1234/48
.
별칭 |
IPDstPrefix,DestinationAddress,da,dst,dstaddr,dstip,dest,destaddr,destip |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-IPPortMatchCondition<UInt16>
Specifies the port to be used to match the network traffic, it can be either source port or destination port. If either the source port or the destination port in a packet matches the value of this parameter, then the QoS policy will apply to the packet. Usually this is a well-known port that a client uses to communicate with a server. With this parameter specified, the same QoS policy can be configured on both the clients and the servers and apply to the traffic in both directions. For example, specifying the IPPortMatchCondition parameter value of 80
matches HTTP traffic sent by both HTTP clients and HTTP servers.
별칭 |
IPPort,port |
필수 여부 |
true |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-IPProtocolMatchCondition<Protocol>
Specifies the IP protocol to be used to match the network traffic. 이 매개 변수에 허용되는 값은 다음과 같습니다. TCP, UDP, or Both. If this parameter is unspecified, then Both is the default condition. The QoS policy will apply to both TCP and UDP traffic.
별칭 |
IPProtocol,Protocol |
필수 여부 |
false |
위치 |
named |
기본값 |
Both |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-IPSrcPortEndMatchCondition<UInt16>
Specifies the last port in a range of source ports to be used to match the network traffic. This parameter must be used in conjunction with the IPSrcPortStartMatchCondition parameter. The value of this parameter also must be larger than the value of the IPSrcPortStartMatchCondition parameter.
별칭 |
IPSrcPortEnd |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-IPSrcPortMatchCondition<UInt16>
Specifies the exact source port to be used to match the network traffic. The filter of a QoS policy can be based on either a single port or a range of ports. To specify a single source port, use this parameter. To specify a range of source ports, use both the IPSrcPortStartMatchCondition and the IPSrcPortEndMatchCondition parameters.
별칭 |
IPSrcPort,SourcePort,sp,srcport |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-IPSrcPortStartMatchCondition<UInt16>
Specifies the first port in a range of source ports to be used to match the network traffic. This parameter must be used in conjunction with the IPSrcPortEndMatchCondition parameter. the value of this parameter also must be smaller than the value of the IPSrcPortEndMatchCondition parameter.
별칭 |
IPSrcPortStart |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-IPSrcPrefixMatchCondition<String>
Specifies the source IP address, optionally with a network prefix, such as 1.2.3.4
, 3ffe:ffff::1
, 192.168.1.0/24
, or fe80::1234/48
.
별칭 |
IPSrcPrefix,SourceAddress,sa,src,srcaddr,srcip |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-iSCSI
Specifies the internet small computer system interface (iSCSI), which uses the dedicated TCP port 3260
.
별칭 |
없음 |
필수 여부 |
true |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-LiveMigration
Specifies the Microsoft live migration, which uses the well-known TCP port 6600
.
별칭 |
없음 |
필수 여부 |
true |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-MinBandwidthWeightAction<Byte>
Specifies a numerical value for minimum bandwidth that a flow should get relatively. The actual bandwidth a flow gets will depend on the weights assigned to other flows in the computer. 이 매개 변수에 허용되는 값은 다음과 같습니다. 1 through 100.
별칭 |
MinBandwidthWeight,minbww,weight |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-Name<String>
Specifies the QoS policy name. This name must be unique for a QoS policy.
별칭 |
없음 |
필수 여부 |
true |
위치 |
1 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-NetDirectPortMatchCondition<UInt16>
Specifies the network direct port to be used to match the network traffic. Network Direct uses an independent port space from the TCP or UDP port space. Windows Server 2012 and later will send a Network Direct policy to a network adapter only if the network adapter supports Network Direct.
별칭 |
NetDirectPort,ndport,networkdirectport |
필수 여부 |
true |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-NetworkProfile<NetworkProfile>
Specifies the profile, or connection type, of a network, such as Domain. 이 매개 변수에 허용되는 값은 다음과 같습니다. Domain, Public, Private, or All. If this parameter is not specified, then the QoS policy will be effective when a computer is connected on any type of connection.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
All |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-NFS
Specifies the network file system, which uses the dedicated TCP port 2049
.
별칭 |
없음 |
필수 여부 |
true |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-PolicyStore<String>
Specifies the location of the policy that is stored. 이 매개 변수에 허용되는 값은 다음과 같습니다.
- ActiveStore
- COMPUTERNAME
- GPO:COMPUTERNAME
- GPO:DOMAIN\GPONAME
- LDAP://LDAP-URL
If a policy is stored in ActiveStore, then the policy will not persist after reboot.
별칭 |
store |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-Precedence<UInt32>
Specifies the priority of a QoS policy. A higher priority policy will trump a lower priority policy in case the policies are conflicting. 이 매개 변수에 허용되는 값은 다음과 같습니다. 0 through 255. 255 represents the highest priority and 0 represents the lowest. If not specified, then the default value is 127.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
127 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-PriorityValue8021Action<SByte>
Specifies the IEEE 802.1p value. 이 매개 변수에 허용되는 값은 다음과 같습니다. 0 through 7.
별칭 |
PriorityValue,PriorityValue8021,pri,dot1p |
필수 여부 |
true |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-SMB
Specifies the server message block, which uses the dedicated TCP port 445
.
별칭 |
없음 |
필수 여부 |
true |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-ThrottleLimit<Int32>
이 cmdlet을 실행하도록 설정할 수 있는 최대 동시 작업 수를 지정합니다. 이 매개 변수가 생략되거나 값 0
이 입력되면 Windows PowerShell®은 컴퓨터에서 실행 중인 CIM cmdlet의 수에 따라 cmdlet에 대한 최적의 제한 한도를 계산합니다. 제한 한도는 현재 cmdlet에만 적용되며 세션이나 컴퓨터에는 적용되지 않습니다.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-ThrottleRateActionBitsPerSecond<UInt64>
Specifies a throttle rate in bits per second to set the maximum bandwidth that can be consumed.
별칭 |
ThrottleRateAction,ThrottleRate,Throttle,maxbw |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-URIMatchCondition<String>
Specifies the URI to match. Only a HTTP URL is currently supported, such as http://myhost
, https://*/training
, http://myhost:8080/training
, or https://myhost:*/training
. The QoS policy will only apply to the traffic sent from HTTP server applications to HTTP clients in response to the requests from the client for the specified URI.
별칭 |
URI,url |
필수 여부 |
true |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-URIRecursiveMatchCondition<Boolean>
Specifies that all subdirectories and files following the URI specified in the URIMatchCondition parameter are to be included. This parameter can be specified only if the URIMatchCondition parameter is specified.
별칭 |
URIRecursive,urlrecursive,recursive |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-UserMatchCondition<String>
Specifies the user or group name in Active Directory, such as contoso\User1
. This parameter is usually specified with another filtering parameter such as the AppPathNameMatchCondtion cmdlet.
별칭 |
User,sid |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-Confirm
cmdlet을 실행하기 전에 확인 메시지가 표시됩니다.
필수 여부 |
false |
위치 |
named |
기본값 |
false |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-WhatIf
cmdlet이 실행될 경우 결과 동작을 표시합니다. cmdlet이 실행되지 않습니다.
필수 여부 |
false |
위치 |
named |
기본값 |
false |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
<CommonParameters>
이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).
입력
입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.
- None
출력
출력 유형은 cmdlet이 내보내는 개체의 유형입니다.
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetQosPolicySettingData
Microsoft.Management.Infrastructure.CimInstance
개체는 WMI(Windows Management Instrumentation) 개체를 표시하는 래퍼 클래스입니다. 파운드 기호(#
) 뒤에 오는 경로는 기본 WMI 개체의 네임스페이스 및 클래스 이름을 제공합니다.
The MSFT_NetQosPolicySettingData object contains a QoS policy.
예제
EXAMPLE 1
This example creates a QoS policy named SMB Policy, that classifies SMB traffic and tags it with 802.1p priority value of 3. The SMB parameter is a built-in filter that matches TCP port 445
, which is reserved for SMB.
PS C:\> New-NetQosPolicy –Name "SMB Policy" -SMB -PriorityValue8021Action 3
EXAMPLE 2
This example creates a QoS policy named FTP, that matches an application path at ftp.exe and throttles the traffic at 1,000,000 bytes per second. This policy is ActiveStore, meaning that it is not persistent after reboot of the computer.
An alias for the ThrottleRateActionBytesPerSecond parameter is MaxBw
.
PS C:\> New-NetQosPolicy –Name "FTP" -AppPathNameMatchCondition ftp.exe -ThrottleRateActionBytesPerSecond 1MB -PolicyStore ActiveStore
EXAMPLE 3
This example creates a QoS policy named Backup, that matches traffic sent to 10.1.1.176/28 subnet and tags it with DSCP value of 40. This policy is effective only on traffic sent on a domain-joined network adapter.
PS C:\> New-NetQosPolicy –Name "Backup" -IPDstPrefixMatchCondition 10.1.1.176/28 -NetworkProfile Domain -DSCPAction 40
EXAMPLE 4
This example creates a QoS policy that matches TCP traffic sent to port 80 and rate-limits it at 10,000,000 bytes per second.
PS C:\> New-NetQosPolicy –Name "HTTP" -IPPort 80 -IPProtocol TCP -ThrottleRateActionBytesPerSecond 10MB
EXAMPLE 5
This example creates a QoS policy named Wildcard, that catches all the traffic that does not match a specific QoS policy and assigns a minimum bandwidth weight of 30 to such traffic.
PS C:\> New-NetQosPolicy –Name "Wildcard" -Default -MinBandwidthWeightAction 30
EXAMPLE 6
This example creates a QoS policy named IIS, that matches return traffic from an HTTP server application with the specified URI and rate limit the return traffic at 500,000 bytes per second.
PS C:\> New-NetQosPolicy –Name "IIS" -URIMatchCondition "http://training" -ThrottleRateActionBytesPerSecond 500KB