Commands › Exchange Online
Get-ConnectionInformation
0.0 or later. For more information, see About the Exchange Online PowerShell module. Use the Get-ConnectionInformation cmdlet to get information about all REST-based connections in the current PowerShell instance with Exchange Online.
Quick start script
# Get-ConnectionInformation — 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-ConnectionInformation -ConnectionId <String[]> -ModulePrefix <String[]> | Format-List
# 3. Export for evidence / drift tracking
Get-ConnectionInformation | Export-Clixml .\ConnectionInformation-$(Get-Date -Format yyyyMMdd).xml
Syntax — 3 parameter sets
Default (Default)
Get-ConnectionInformation [<CommonParameters>]
ConnectionId
Get-ConnectionInformation -ConnectionId <String[]> [<CommonParameters>]
ModulePrefix
Get-ConnectionInformation -ModulePrefix <String[]> [<CommonParameters>]
Parameters (2)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.