Applies to: Exchange Server 2007
Topic Last Modified: 2007-06-11
Use the Set-ForeignConnector cmdlet to modify an existing 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.
Syntax
Set-ForeignConnector -Identity
<ForeignConnectorIdParameter> [-AddressSpaces
<MultiValuedProperty>] [-Comment <String>]
[-DomainController <Fqdn>] [-DropDirectory <String>]
[-DropDirectoryQuota <Unlimited>] [-Enabled <$true |
$false>] [-MaxMessageSize <Unlimited>] [-Name
<String>] [-RelayDsnRequired <$true | $false>]
[-SourceTransportServers <MultiValuedProperty>]
|
Set-ForeignConnector [-AddressSpaces
<MultiValuedProperty>] [-Comment <String>]
[-DomainController <Fqdn>] [-DropDirectory <String>]
[-DropDirectoryQuota <Unlimited>] [-Enabled <$true |
$false>] [-Instance <ForeignConnector>] [-MaxMessageSize
<Unlimited>] [-Name <String>] [-RelayDsnRequired
<$true | $false>] [-SourceTransportServers
<MultiValuedProperty>]
|
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
Identity |
Required |
Microsoft.Exchange.Configuration.Tasks.ForeignConnectorIdParameter |
This parameter specifies the Foreign connector that you want to modify. The Identity parameter can take any of the following values for the Foreign connector object:
|
AddressSpaces |
Optional |
Microsoft.Exchange.Data.MultiValuedProperty |
This parameter specifies the domain names to which the Foreign connector sends messages. You may specify multiple address spaces by separating the address spaces with commas. The complete syntax for entering each address space is as follows: <ConnectorScope>:<AddressSpaceType>:<AddressSpace>;<AddressSpaceCost>
You must use the complete syntax for the AddressSpaces parameter only for the following conditions:
If you enter a domain name or a comma-separated list of domain names for the value of the AddressSpaces parameter, the address space type of SMTP and a cost of 1 are assumed for each domain name. |
Comment |
Optional |
System.String |
This parameter specifies an optional comment for the Foreign connector. You must enclose the Comment parameter in double quotation marks as follows, for example: "this is an admin note". |
DomainController |
Optional |
Microsoft.Exchange.Data.Fqdn |
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. |
DropDirectory |
Optional |
System.String |
This parameter specifies the name of the Drop directory that is used by this Foreign connector. All outbound messages that are sent to address spaces that are defined by this Foreign connector are put in the specified Drop directory. The location of the Drop directory for each Foreign connector is controlled by the following two items:
By default, the RootDropDirectoryPath parameter is blank. This indicates the value of RootDropDirectoryPath is the Exchange 2007 installation folder. The default Exchange 2007 installation folder is C:\Program Files\Microsoft\Exchange Server\. By default, the value of the DropDirectory parameter is the name of the Foreign connector. If the value of the DropDirectory parameter doesn't contain absolute path information, the location of the Drop directory is defined by the combination of the DropDirectory parameter and the RootDropDirectoryPath parameter. If the value of the DropDirectory parameter contains absolute path information, the value of the RootDropDirectoryPath must be unspecified. The location of the Drop directory is defined only by the value of the DropDirectory parameter. The Drop directory is not created for you. Therefore, you will have to manually create each Drop directory folder. The Drop directory must have the following permissions assigned to it:
|
DropDirectoryQuota |
Optional |
Microsoft.Exchange.Data.Unlimited |
This parameter specifies the maximum size of all messages files in Drop directory. When the specified value is reached, no new message files can be copied into the Drop directory until the existing messages are delivered and deleted. When you enter a value for the DropDirectoryQuota parameter, qualify the value with one of the following units:
Unqualified values are treated as bytes. The valid input range
for this parameter is |
Enabled |
Optional |
System.Boolean |
This parameter enables or disables the Foreign connector. The
valid input values are |
Instance |
Optional |
Microsoft.Exchange.Data.Directory.SystemConfiguration.ForeignConnector |
The Instance parameter enables you to pass an entire object to the command to be processed. It is mainly used in scripts where an entire object must be passed to the command. |
MaxMessageSize |
Optional |
Microsoft.Exchange.Data.Unlimited |
This parameter specifies the maximum size of a message that can pass through this Foreign connector. When you enter a value for the MaxMessageSize parameter, qualify the value with one of the following units:
Unqualified values are treated as kilobytes. If you enter a
value of |
Name |
Optional |
System.String |
This parameter specifies a descriptive name for the Foreign connector. |
RelayDsnRequired |
Optional |
System.Boolean |
This parameter specifies whether a Relay delivery status
notification (DSN) is required by the Foreign connector when
messages are written to the Drop directory. The valid input values
for this parameter are |
SourceTransportServers |
Optional |
Microsoft.Exchange.Data.MultiValuedProperty |
This parameter specifies the names of the Hub Transport servers that use this Foreign connector. You may specify multiple Hub Transport servers by separating the server names with commas. Having a single Foreign connector homed on multiple Hub Transport servers provides fault tolerance and high availability if one of the Hub Transport servers fails. The default value of this parameter is the name of the Hub Transport server on which this Foreign connector was first installed. |
Detailed Description
The Set-ForeignConnector cmdlet modifies an existing Foreign connector. The property changes that you specify when you use the Set-ForeignConnector cmdlet overwrite the existing property values.
To run the Set-ForeignConnector cmdlet, the account you use must be delegated the Exchange Server Administrator role and local Administrators group for the target server.
For more information about permissions, delegating roles, and the rights that are required to administer Exchange 2007, see Permission Considerations.
Example
The following code sample shows two examples that use the Set-ForeignConnector cmdlet.
The first example shows a Set-ForeignConnector
command that modifies an existing Foreign connector named "Contoso
Foreign Connector". The command sets the MaxMessageSize
parameter to 10 MB
.
The second example shows a Set-ForeignConnector command that modifies the address spaces that are serviced by an existing Foreign connector named "Contoso Foreign Connector". The details of the address spaces are as follows:
- First address space:
- Address space type: SMTP
- Address space: "*.contoso.com"
- Address space cost: 1
- Address space type: SMTP
- Second address space:
- Address space type: Lotus Notes
- Address space: "*@domino"
- Address space cost: 55
- Address space type: Lotus Notes
Copy Code | |
---|---|
Set-ForeignConnector "Contoso Foreign Connector" -MaxMessageSize 10MB Set-ForeignConnector "Contoso Foreign Connector" -AddressSpaces ".contoso.com","Lotus Notes:*@domino;55" |