Set-NetQosPolicy

Set-NetQosPolicy

Updates the Quality of Service (QoS) policy settings.

구문

Parameter Set: Query (cdxml)
Set-NetQosPolicy [[-Name] <String[]> ] [-AppPathNameMatchCondition <String> ] [-AsJob] [-CimSession <CimSession[]> ] [-DSCPAction <SByte> ] [-IPDstPortEndMatchCondition <UInt16> ] [-IPDstPortMatchCondition <UInt16> ] [-IPDstPortStartMatchCondition <UInt16> ] [-IPDstPrefixMatchCondition <String> ] [-IPPortMatchCondition <UInt16> ] [-IPProtocolMatchCondition <Protocol> ] [-IPSrcPortEndMatchCondition <UInt16> ] [-IPSrcPortMatchCondition <UInt16> ] [-IPSrcPortStartMatchCondition <UInt16> ] [-IPSrcPrefixMatchCondition <String> ] [-MinBandwidthWeightAction <Byte> ] [-NetDirectPortMatchCondition <UInt16> ] [-NetworkProfile <NetworkProfile> ] [-PassThru] [-PolicyStore <String> ] [-Precedence <UInt32> ] [-PriorityValue8021Action <SByte> ] [-TemplateMatchCondition <Template> ] [-ThrottleLimit <Int32> ] [-ThrottleRateActionBitsPerSecond <UInt64> ] [-URIMatchCondition <String> ] [-URIRecursiveMatchCondition <Boolean> ] [-UserMatchCondition <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: InputObject (cdxml)
Set-NetQosPolicy -InputObject <CimInstance[]> [-AppPathNameMatchCondition <String> ] [-AsJob] [-CimSession <CimSession[]> ] [-DSCPAction <SByte> ] [-IPDstPortEndMatchCondition <UInt16> ] [-IPDstPortMatchCondition <UInt16> ] [-IPDstPortStartMatchCondition <UInt16> ] [-IPDstPrefixMatchCondition <String> ] [-IPPortMatchCondition <UInt16> ] [-IPProtocolMatchCondition <Protocol> ] [-IPSrcPortEndMatchCondition <UInt16> ] [-IPSrcPortMatchCondition <UInt16> ] [-IPSrcPortStartMatchCondition <UInt16> ] [-IPSrcPrefixMatchCondition <String> ] [-MinBandwidthWeightAction <Byte> ] [-NetDirectPortMatchCondition <UInt16> ] [-NetworkProfile <NetworkProfile> ] [-PassThru] [-Precedence <UInt32> ] [-PriorityValue8021Action <SByte> ] [-TemplateMatchCondition <Template> ] [-ThrottleLimit <Int32> ] [-ThrottleRateActionBitsPerSecond <UInt64> ] [-URIMatchCondition <String> ] [-URIRecursiveMatchCondition <Boolean> ] [-UserMatchCondition <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

자세한 설명

The Set-NetQosPolicy cmdlet modifies an existing Quality of Service (QoS) policy. Match conditions or actions or general parameters of the policy such as NetworkProfile or Precedence can be changed.

Users cannot change the location of where an existing QoS policy is stored. Changing the PolicyStore parameter value will fail.

If a policy was created to be in ActiveStore and a user attempts to make it persistent, such as storing the policy on the local computer, the user has to create a new policy and place it on the local computer (localhost).

If the PolicyStore parameter is not specified, then the cmdlet will search for and update the policy on the local computer (localhost).

매개 변수

-AppPathNameMatchCondition<String>

Specifies the name by which an application is run in Windows Server® 2012, 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

-DSCPAction<SByte>

Specifies the differentiated services code point (DSCP) value. A valid DSCP value is in the range between 0 and 63. In addition, users can enter -1 to remove the DSCP setting from the policy.

별칭

DSCPValue,DSCP

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-InputObject<CimInstance[]>

Specified the object which will be modified by this cmdlet. The object must be piped to the cmdlet.

별칭

없음

필수 여부

true

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByValue)

와일드카드 문자 허용 여부

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 this parameter value to 80 matches HTTP traffic sent by both HTTP clients and HTTP servers.

별칭

IPPort,port

필수 여부

false

위치

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 value. 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

-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.

별칭

없음

필수 여부

false

위치

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 will send a Network Direct policy to a network adapter only if the network adapter supports Network Direct.

별칭

NetDirectPort,ndport,networkdirectport

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-NetworkProfile<NetworkProfile>

Specifies the profile, or connection type, of a network. 이 매개 변수에 허용되는 값은 다음과 같습니다. 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

-PassThru

작업하고 있는 항목을 나타내는 개체를 반환합니다. 기본적으로 이 cmdlet은 출력을 생성하지 않습니다.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-PolicyStore<String>

Specifies the location of the policy that is stored. 이 매개 변수에 허용되는 값은 다음과 같습니다.
- ActiveStore
- COMPUTERNAME
- GPO:COMPUTERNAME
- GPO:DOMAIN\GPONAME
- LDAP://LDAP-URL

별칭

store

필수 여부

false

위치

named

기본값

localhost

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Precedence<UInt32>

Specifies the priority of a QoS policy. A higher priority policy will override a lower priority policy in case the priorities are conflicting. 이 매개 변수에 허용되는 값은 다음과 같습니다. 0 through 255. 255 specifies the highest priority and 0 specifies the lowest. If not specified, then the default value is 127.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-PriorityValue8021Action<SByte>

Specifies the IEEE 802.1p value. A valid 802.1p value is in the range between 0 and 7. In addition, users can enter -1 to remove the 802.1p priority setting from the policy.

별칭

PriorityValue,PriorityValue8021,pri,dot1p

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-TemplateMatchCondition<Template>

Specifies a number of filters built in Windows Server® 2012. 이 매개 변수에 허용되는 값은 다음과 같습니다. FCoE, iSCSI, LiveMigration, NFS, SMB, or. Note: Refer to the corresponding parameter descriptions for the New-NetQosPolicy cmdlet.

별칭

Template

필수 여부

false

위치

named

기본값

0

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

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

필수 여부

false

위치

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

기본값

$false

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-UserMatchCondition<String>

Specifies the user or group name in Active Directory, such as contoso\johnj99. This parameter is usually specified with other filtering parameter such as the AppPathNameMatchCondtion parameter.

별칭

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에 파이프할 수 있는 개체의 유형입니다.

  • 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.

출력

출력 유형은 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. Only when the PassThru parameter is specified will this cmdlet return the MSFT_NetQosPolicySettingData object.

예제

EXAMPLE 1

This example updates the QoS policy named SMB Policy so that it only applies to traffic that is outgoing from a domain-joined network adapter.

PS C:\> Set-NetQosPolicy –Name "SMB Policy" -NetworkProfile Domain

EXAMPLE 2

This example gets the QoS policy named wildcard and updates the precedence of the policy to 250.

PS C:\> Get-NetQosPolicy –Name "wildcard" | Set-NetQosPolicy -Precedence 250

EXAMPLE 3

This example updates the QoS policy named Backup with additional matching conditions.

PS C:\> Set-NetQosPolicy –Name "Backup" -IPDstPortStart 3501 -IPDstPortEnd 3510

EXAMPLE 4

This example updates the QoS policy named IIS, so that it applies to the return traffic for both the specified URI and subdirectories and files under the URI. This cmdlet also sets a new throttling rate at 3,000,000 bytes per second. Note: An alias for the ThrottleRateActionBytesPerSecond parameter is ThrottleRateAction. Another alias is MaxBw.

PS C:\> Set-NetQosPolicy –Name "IIS" -Recursive $true -ThrottleRateActionBytesPerSecond 3000KB

관련 항목

Get-NetQosPolicy

New-NetQosPolicy

Remove-NetQosPolicy