Commands › Exchange Online
Export-AutoDiscoverConfig
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)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.