Applies to: Exchange Server 2007
Topic Last Modified: 2007-06-11

Use the Remove-ForeignConnector cmdlet to delete a Foreign connector on a computer that is running Microsoft Exchange Server 2007 and that has the Hub Transport server role installed. A Foreign connector uses a Drop directory on a Hub Transport server to send messages to a local messaging server that doesn't use the Simple Mail Transfer Protocol (SMTP) as its primary transport mechanism. These messaging servers are known as foreign gateway servers. Third-party fax gateway servers are examples of foreign gateway servers. The address spaces that are assigned to a Foreign connector can be SMTP or non-SMTP.


Remove-ForeignConnector -Identity <ForeignConnectorIdParameter> [-DomainController <Fqdn>]


Parameter Required Type Description




This parameter specifies the GUID or connector name of a specific Foreign connector. You can also include the server name by using the format ServerName\ConnectorName.




To specify the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to the Active Directory directory service, include the DomainController parameter. The DomainController parameter is not supported on computers that have the Edge Transport server role installed. The Edge Transport server role writes and reads only to the local Active Directory Application Mode (ADAM) instance.

Detailed Description

The Remove-ForeignConnector cmdlet deletes the object and the configuration information for a Foreign connector.

Although a Foreign connector is configured on a local Hub Transport server or an Edge Transport server, if you delete a Foreign connector, you may affect mail flow throughout the organization.

To run the Remove-ForeignConnector cmdlet, the account you use must be delegated the Exchange Server Administrator role and local Administrators group for the target server.

To run the Remove-ForeignConnector 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 2007, see Permission Considerations.


The following code example shows three commands that use the Remove-ForeignConnector cmdlet.

When you run the first example, you will be prompted for the Identity parameter. When you are prompted for the Identity parameter, enter the Identity parameter as a string as shown in the following examples:

  • As a GUID: de2a614d-dd4e8-4ef7-b113-b51bd14ac3e1

  • As a connector name: "Foreign Connector Name"

In the second example, the command deletes the object and configuration information for the Foreign connector that is specified by the Identity parameter.

In the third example, the command runs without the Identity parameter label, leaving only the Identity parameter value.

Copy Code
Remove-ForeignConnector -Identity "Foreign Connector Name"
Remove-ForeignConnector "Foreign Connector Name"