Applies to: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1, Exchange Server 2007
Topic Last Modified: 2007-01-15

This topic explains how to use the Exchange Management Console or the Exchange Management Shell to enable or disable an existing transport rule on a computer that is running Microsoft Exchange Server 2007 that has the Hub Transport server role or Edge Transport server role installed.

For more information about transport rules, see Overview of Transport Rules.

Before You Begin

To perform the following procedures, the account you use must be delegated the following:

  • Exchange Organization Administrator role

To perform the following procedures 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 2007, see Permission Considerations.

Important:
The Transport Rule agent must be enabled before you can apply transport rules to e-mail messages that enter and leave a Hub Transport server. The Edge Rule agent must be enabled before you can apply transport rules to messages that enter and leave the Edge Transport server. You can run the Get-TransportAgent cmdlet on both the Hub Transport server and Edge Transport server to determine whether the Transport Rule agent or Edge Rule agent is running on the respective server role.

For more information about the Get-TransportAgent cmdlet, see Get-TransportAgent.

To enable the Transport Rules agent if it is not enabled on a Hub Transport server, run the following command on that Hub Transport server:

Enable-TransportAgent -Identity "Transport Rule agent"

To enable the Edge Rules agent if it is not enabled on an Edge Transport server, run the following command on that Edge Transport server:

Enable-TransportAgent -Identity "Edge Rule agent"

For more information about the Enable-TransportAgent cmdlet, see Enable-TransportAgent.
Note:
When you enable or disable transport rules on a Hub Transport server, the modified transport rule is replicated across the Exchange 2007 organization to all the Hub Transport servers. When you enable or disable transport rules on an Edge Transport server, the modified transport rule is modified only on the local Edge Transport server.

Using the Exchange Management Console to Enable or Disable a Transport Rule

The following procedures show you how to open the Transport Rule wizard on a Hub Transport server or an Edge Transport server in the Exchange Management Console, and then enable or disable a transport rule.

To use the Exchange Management Console to enable or disable a transport rule on a Hub Transport server

  1. Open the Exchange Management Console on the Hub Transport server on which you want to enable or disable a transport rule.

  2. In the console tree, click Organization Configuration, and then click Hub Transport.

  3. In the result pane, click the Transport Rules tab.

  4. Right-click the transport rule that you want to enable or disable. If the transport rule is not enabled, click Enable Rule to enable the rule. If the transport rule is enabled, click Disable Rule to disable the rule.

To use the Exchange Management Console to enable or disable a transport rule on an Edge Transport server

  1. Open the Exchange Management Console on the Edge Transport server on which you want to enable or disable a transport rule.

  2. In the console tree, click Edge Transport.

  3. In the result pane, click the Transport Rules tab.

  4. Right-click the transport rule that you want to enable or disable. If the transport rule is not enabled, click Enable Rule to enable the rule. If the transport rule is enabled, click Disable Rule to disable the rule.

Using the Exchange Management Shell to Enable or Disable a Transport Rule

In the Exchange Management Shell, you use the Enable-TransportRule cmdlet to enable a transport rule and the Disable-TransportRule cmdlet to disable a transport rule. Specify the identity of the transport rule to enable or disable by using the following syntax:

  • Enable a transport rule   Enable-TransportRule <Identity>

  • Disable a transport rule   Disable-TransportRule <Identity>

For information about how to view transport rules on Hub Transport servers or Edge Transport servers, see How to View a Transport Rule.

To use the Exchange Management Shell to enable an existing transport rule

  • Run the following command:

    Copy Code
    Enable-TransportRule "Sample Transport Rule"
    

To use the Exchange Management Shell to disable an existing transport rule

  • Run the following command:

    Copy Code
    Disable-TransportRule "Sample Transport Rule"
    

For More Information

For detailed syntax and parameter information about each cmdlet, see the following topics: