Commands › Exchange Online

Set-RemoteDomain

Exchange Online ExchangeOnlineManagement Set-*

Configure a managed connection for a remote domain.

Quick start script

# Set-RemoteDomain — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-RemoteDomain
$before | Format-List

# 3. Make the change (dry run first)
Set-RemoteDomain -Identity <RemoteDomainIdParameter> -WhatIf
Set-RemoteDomain -Identity <RemoteDomainIdParameter>

# 4. Verify and diff
$after = Get-RemoteDomain
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Set-RemoteDomain [-Identity] <RemoteDomainIdParameter>
 [-AllowedOOFType <AllowedOOFType>]
 [-AutoForwardEnabled <Boolean>]
 [-AutoReplyEnabled <Boolean>]
 [-ByteEncoderTypeFor7BitCharsets <ByteEncoderTypeFor7BitCharsetsEnum>]
 [-CharacterSet <String>]
 [-Confirm]
 [-ContentType <ContentType>]
 [-DeliveryReportEnabled <Boolean>]
 [-DisplaySenderName <Boolean>]
 [-DomainController <Fqdn>]
 [-IsCoexistenceDomain <Boolean>]
 [-IsInternal <Boolean>]
 [-LineWrapSize <Unlimited>]
 [-MeetingForwardNotificationEnabled <Boolean>]
 [-MessageCountThreshold <Int32>]
 [-Name <String>]
 [-NDRDiagnosticInfoEnabled <Boolean>]
 [-NDREnabled <Boolean>]
 [-NonMimeCharacterSet <String>]
 [-PreferredInternetCodePageForShiftJis <PreferredInternetCodePageForShiftJisEnum>]
 [-RequiredCharsetCoverage <Int32>]
 [-TargetDeliveryDomain <Boolean>]
 [-TNEFEnabled <Boolean>]
 [-TrustedMailInboundEnabled <Boolean>]
 [-TrustedMailOutboundEnabled <Boolean>]
 [-UseSimpleDisplayName <Boolean>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (28)

ParameterTypeRequiredWhat it controls
-Identity RemoteDomainIdParameter yes The Identity parameter specifies the remote domain that you want to modify. You can use any value that uniquely identifies the remote domain. For example:
-AllowedOOFType AllowedOOFType The AllowedOOFType parameter specifies the type of automatic replies or out-of-office (also known as OOF) notifications than can be sent to recipients in the remote domain. Valid values are:
-AutoForwardEnabled Boolean The AutoForwardEnabled parameter specifies whether to allow messages that are auto-forwarded by client email programs in your organization. Valid values are:
-AutoReplyEnabled Boolean The AutoReplyEnabled parameter specifies whether to allow messages that are automatic replies from client email programs in your organization (for example, automatic reply messages that are generated by rules in...
-ByteEncoderTypeFor7BitCharsets ByteEncoderTypeFor7BitCharsetsEnum The ByteEncoderTypeFor7BitCharsets parameter specifies the 7-bit transfer encoding method for MIME format for messages sent to this remote domain. Valid values are:
-CharacterSet String The CharacterSet parameter specifies a character set for MIME messages without defined character sets that are sent from your organization to recipients in the remote domain. Valid values are:
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-ContentType ContentType The ContentType parameter specifies the outbound message content type and formatting. Valid values are:
-DeliveryReportEnabled Boolean The DeliveryReportEnabled parameter specifies whether to allow delivery reports from client software in your organization to recipients in the remote domain. Valid values are:
-DisplaySenderName Boolean **Note**: You should only modify this parameter under the direction of Microsoft Customer Service and Support.
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-IsCoexistenceDomain Boolean The IsCoexistenceDomain parameter specifies whether this remote domain is used to represent your Exchange Online organization. Valid values are:
-IsInternal Boolean The IsInternal parameter specifies whether the recipients in the remote domain are considered to be internal recipients. Valid values are:
-LineWrapSize Unlimited The LineWrapSize parameter specifies the line-wrap size for messages to recipients in the remote domain. Valid values are an integer from 0 through 132 or the value to unlimited. The default value is unlimited.
-MeetingForwardNotificationEnabled Boolean The MeetingForwardNotificationEnabled parameter specifies whether to enable meeting forward notifications for recipients in the remote domain. Valid values are:
-MessageCountThreshold Int32 This parameter is available only in on-premises Exchange.
-Name String The Name parameter specifies a unique name for the remote domain object. The maximum length is 64 characters. If the value contains spaces, enclose the value in quotation marks (").
-NDRDiagnosticInfoEnabled Boolean This parameter is functional only in on-premises Exchange.
-NDREnabled Boolean The NDREnabled parameter specifies whether to allow non-delivery reports (also known NDRs or bounce messages) from your organization to recipients in the remote domain. Valid values are:
-NonMimeCharacterSet String The NonMimeCharacterSet parameter specifies a character set for plain text messages without defined character sets that are sent from your organization to recipients in the remote domain. Valid values are:
-PreferredInternetCodePageForShiftJis PreferredInternetCodePageForShiftJisEnum The PreferredInternetCodePageForShiftJis parameter specifies the specific code page to use for Shift JIS character encoding in messages that are sent to recipients in the remote domain. Valid values are:
-RequiredCharsetCoverage Int32 The RequiredCharsetCoverage parameter specifies a percentage threshold for characters in a message that must match to apply your organization's preferred character set before switching to automatic character set detection.
-TargetDeliveryDomain Boolean The TargetDeliveryDomain parameter specifies whether the remote domain is used in cross-forest deployments to generate target email addresses for new mail users that represent users in the other organization (for...
-TNEFEnabled Boolean The TNEFEnabled parameter specifies whether Transport Neutral Encapsulation Format (TNEF) message encoding is used on messages sent to the remote domain. Valid values are:
-TrustedMailInboundEnabled Boolean The TrustedMailInboundEnabled parameter specifies whether messages from senders in the remote domain are treated as trusted messages. Valid values are:
-TrustedMailOutboundEnabled Boolean The TrustedMailOutboundEnabled parameter specifies whether messages sent to recipients in the remote domain are treated as trusted messages. Valid values are:
-UseSimpleDisplayName Boolean The UseSimpleDisplayName parameter specifies whether the sender's simple display name is used for the From email address in messages sent to recipients in the remote domain. Valid values are:
-WhatIf SwitchParameter The WhatIf switch shows what the command does without making any changes. You don't need to specify a value with this switch.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.