Remove-TransportRule (RTM)

Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.

 

Applies to: Exchange Server 2007

Use the Remove-TransportRule cmdlet to remove a transport rule from the Transport Rules agent on a computer that has the Hub Transport server role or the Edge Transport server role installed in a Microsoft Exchange Server 2007 organization.

Syntax

Remove-TransportRule -Identity <RuleIdParameter> [-DomainController <Fqdn>]

Detailed Description

The Remove-TransportRule cmdlet enables you to remove a transport rule that is no longer required.

For information about the Transport Rules agent, see Overview of Transport Rules.

To run the Remove-TransportRule cmdlet, the account you use must be delegated the following:

  • Exchange Organization Administrator role

To run the Remove-TransportRule cmdlet on a computer that has the Edge Transport server role installed, you must log on by using an account that is a member of the local Administrators group on that computer.

For more information about permissions, delegating roles, and the rights that are required to administer Exchange Server 2007, see Permission Considerations.

Parameters

Parameter Required Type Description

Identity

Required

Microsoft.Exchange.MessagingPolicies.Rules.Tasks.RuleIdParameter

Use this parameter to specify the transport rule to be removed. Enter either the GUID or the Name of the rule.

You can omit the Identity parameter label.

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

To specify the fully qualified domain name (FQDN) of the domain controller that retrieves data from the Active Directory directory service, include the DomainController parameter in the command. The DomainController parameter is not supported on computers that run the Edge Transport server role. The Edge Transport server role writes only to the local Active Directory Application Mode (ADAM) instance.

Input Types

Return Types

Errors

Error Description

 

 

Exceptions

Exceptions Description

 

 

Example

The following example shows how to use the Remove-TransportRule command to remove a single transport rule. The WhatIf parameter is used to display what changes are about to be applied without committing those changes. If you remove the WhatIf parameter and run the command again, the transport rule will be removed.

Remove-TransportRule "Redirect messages to kim@contoso.com to legal@contoso.com" -WhatIf