Set-ForeignConnector
Applies to: Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3
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>] [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-DropDirectory <String>] [-DropDirectoryQuota <Unlimited>] [-Enabled <$true | $false>] [-Force <SwitchParameter>] [-IsScopedConnector <$true | $false>] [-MaxMessageSize <Unlimited>] [-Name <String>] [-RelayDsnRequired <$true | $false>] [-SourceTransportServers <MultiValuedProperty>] [-WhatIf [<SwitchParameter>]]
Set-ForeignConnector [-AddressSpaces <MultiValuedProperty>] [-Comment <String>] [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-DropDirectory <String>] [-DropDirectoryQuota <Unlimited>] [-Enabled <$true | $false>] [-Force <SwitchParameter>] [-Instance <ForeignConnector>] [-IsScopedConnector <$true | $false>] [-MaxMessageSize <Unlimited>] [-Name <String>] [-RelayDsnRequired <$true | $false>] [-SourceTransportServers <MultiValuedProperty>] [-WhatIf [<SwitchParameter>]]
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.
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. The complete syntax for entering each address space is as follows: <AddressSpaceType>:<AddressSpace>;<AddressSpaceCost>
If you specify the address space type or the address space cost, you must enclose the address space in double quotation marks (
You may specify multiple address spaces by separating the address spaces with commas, as follows, for example: |
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". |
Confirm |
Optional |
System.Management.Automation.SwitchParameter |
The Confirm parameter causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You don't have to specify a value with the Confirm parameter. |
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 |
Force |
Optional |
System.Management.Automation.SwitchParameter |
This parameter suppresses the warning or confirmation messages that appear during specific configuration changes. |
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. |
IsScopedConnector |
Optional |
System.Boolean |
This parameter controls the availability of the connector to other Hub Transport servers. When the value of this parameter is |
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. |
WhatIf |
Optional |
System.Management.Automation.SwitchParameter |
The WhatIf parameter instructs the command to simulate the actions that it would take on the object. By using the WhatIf parameter, you can view what changes would occur without having to apply any of those changes. You don't have to specify a value with the WhatIf parameter. |
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
Second address space:
Address space type: Lotus Notes
Address space: "*@domino"
Address space cost: 55
Set-ForeignConnector "Contoso Foreign Connector" -MaxMessageSize 10MB
Set-ForeignConnector "Contoso Foreign Connector" -AddressSpaces ".contoso.com","Lotus Notes:*@domino;55"