Applies to: Exchange Server 2007
Topic Last Modified: 2007-06-17
Use the Import-TransportRuleCollection cmdlet to import a previously exported transport rule collection for use by the Transport Rules agent on a computer that has the Microsoft Exchange Server 2007 Hub Transport server role or the Edge Transport server role installed.
Syntax
Import-TransportRuleCollection -FileName <String>
[-DomainController <Fqdn>]
|
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
FileName |
Required |
System.String |
Use this parameter to specify the full path and file name of the
XML file to import. If the path or file name contains spaces,
enclose the whole string in quotation marks. For example,
|
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. |
Detailed Description
The Import-TransportRuleCollection cmdlet imports a previously exported transport rule collection for use by the Transport Rules agent.
Caution: |
---|
Importing a transport rule collection from an XML file removes
or overwrites all preexisting transport rules that were defined for
the Transport Rules agent. Make sure that you have a backup of your
current transport rule collection before you import and overwrite
your current transport rules. On Hub Transport servers, the Import-TransportRuleCollection command overwrites all transport rules that are configured in the Exchange 2007 organization, except for transport rules on Edge Transport servers. On Edge Transport servers, this command overwrites transport rules that are configured on the local computer only. |
For information about how to export a transport rule collection to an XML file, see Export-TransportRuleCollection (RTM).
For information about the Transport Rules agent, see Overview of Transport Rules.
To run the Import-TransportRuleCollection cmdlet, the account you use must be delegated the following:
- Exchange Organization Administrator role
To run the Import-TransportRuleCollection 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.
Input Types
Return Types
Errors
Error | Description |
---|---|
|
|
Exceptions
Exceptions | Description |
---|---|
|
|
Example
The following example shows the syntax of the Import-TransportRuleCollection command.
Copy Code | |
---|---|
Import-TransportRuleCollection -FileName "c:\transport rules\new transport rules.xml" |