Applies to: Exchange Server 2013, Exchange Online
Topic Last Modified: 2012-09-18
Use the New-ResourcePolicy cmdlet to create a custom resource policy.
For information about the parameter sets in the Syntax section below, see Syntax.
Syntax
New-ResourcePolicy -Name <String> -Resource
<None | MdbLatency | Processor | MdbReplication |
CiAgeOfLastNotification | CiRetryQueueSize | MdbAvailability |
Remote> -WorkloadManagementPolicy
<WorkloadManagementPolicyIdParameter> [-Confirm
[<SwitchParameter>]] [-DomainController <Fqdn>]
[-WhatIf [<SwitchParameter>]]
|
Examples
EXAMPLE 1
This example creates the resource policy DublinProcessorResourcePolicy to be used to manage the Processor resource at the Dublin, Ireland location of Contoso.com.
Copy Code | |
---|---|
New-ResourcePolicy -Name DublinProcessorResourcePolicy -Resource Processor -WorkloadManagementPolicy DublinWorkloadManagementPolicy -DomainController Dublin01.Contoso.com |
Detailed Description
By default, there is one resource policy for each resource managed by Exchange workload management. You can use the New-ResourcePolicy cmdlet to create custom resource policy objects to change the way that Exchange controls the resources consumed by Exchange workloads. When you create a resource policy, you must specify a name of the resource policy, the type of resource, and the name of the workload management policy to which you want it associated. You must use the Set-ResourcePolicy cmdlet to set the thresholds for the new custom resource policy.
You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Exchange workload throttling" entry in the Server Health and Performance Permissions topic.
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
Name |
Required |
System.String |
The Name parameter specifies the name of the new resource policy. The name can have a maximum of 64 characters. If the name contains spaces, enclose the name in quotation marks ("). We recommend that you choose a descriptive name for the resource policy. |
Resource |
Required |
Microsoft.Exchange.WorkloadManagement.ResourceMetricType |
The Resource parameter specifies the resource for which
the policy is being defined. The resources available by default are
|
WorkloadManagementPolicy |
Required |
Microsoft.Exchange.Configuration.Tasks.WorkloadManagementPolicyIdParameter |
The WorkloadManagementPolicy parameter specifies the name of the workload management policy to which this resource policy applies. |
Confirm |
Optional |
System.Management.Automation.SwitchParameter |
The Confirm switch causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You don't have to specify a value with the Confirm switch. |
DomainController |
Optional |
Microsoft.Exchange.Data.Fqdn |
The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to Active Directory. |
WhatIf |
Optional |
System.Management.Automation.SwitchParameter |
The WhatIf switch instructs the command to simulate the actions that it would take on the object. By using the WhatIf switch, you can view what changes would occur without having to apply any of those changes. You don't have to specify a value with the WhatIf switch. |
Input Types
To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types. If the Input Type field for a cmdlet is blank, the cmdlet doesn’t accept input data.
Return Types
To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types. If the Output Type field is blank, the cmdlet doesn’t return data.