Commands › Exchange Online

Get-ADServerSettings

Exchange Online ExchangeOnlineManagement Get-*

View the Active Directory Domain Services (AD DS) environment settings in the current Exchange Management Shell session. The Get-ADServerSettings cmdlet replaces the AdminSessionADSettings session variable that was used in Exchange Server 2007.

Quick start script

# Get-ADServerSettings — 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
Get-ADServerSettings | Format-List

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

Syntax

Get-ADServerSettings [<CommonParameters>]

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