Commands › Exchange Online

Export-AutoDiscoverConfig

Exchange Online ExchangeOnlineManagement Export-*

Create or update a service connection point for an Autodiscover service pointer in a target Exchange forest.

Quick start script

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

# 2. Run and inspect
Export-AutoDiscoverConfig -TargetForestDomainController <String> | Format-List

# 3. Export for evidence / drift tracking
Export-AutoDiscoverConfig | Export-Clixml .\AutoDiscoverConfig-$(Get-Date -Format yyyyMMdd).xml

Syntax

Export-AutoDiscoverConfig -TargetForestDomainController <String>
 [-Confirm]
 [-DeleteConfig <Boolean>]
 [-DomainController <Fqdn>]
 [-MultipleExchangeDeployments <Boolean>]
 [-PreferredSourceFqdn <Fqdn>]
 [-SourceForestCredential <PSCredential>]
 [-TargetForestCredential <PSCredential>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (9)

ParameterTypeRequiredWhat it controls
-TargetForestDomainController String yes The TargetForestDomainController parameter specifies the forest or domain controller that you want to export the Autodiscover configuration to.
-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.
-DeleteConfig Boolean The DeleteConfig parameter causes the command to delete your configuration settings on the service connection point object.
-DomainController Fqdn The DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory. You identify the domain controller by its fully qualified domain name...
-MultipleExchangeDeployments Boolean The MultipleExchangeDeployments parameter specifies whether multiple Exchange deployments exist. Valid values are:
-PreferredSourceFqdn Fqdn The PreferredSourceFqdn parameter specifies the FQDN of the Active Directory domain for the Autodiscover pointer service connection point object.
-SourceForestCredential PSCredential The SourceForestCredential parameter specifies the credentials to use when connecting to the source forest.
-TargetForestCredential PSCredential The TargetForestCredential parameter specifies the credentials to use to connect to the target forest.
-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.