Commands › Exchange Online
Export-ActiveSyncLog
Parse the Internet Information Services (IIS) logs and return information about Microsoft Exchange ActiveSync usage, either on the screen or in an output file.
Quick start script
# Export-ActiveSyncLog — 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-ActiveSyncLog -Filename <String> | Format-List
# 3. Export for evidence / drift tracking
Export-ActiveSyncLog | Export-Clixml .\ActiveSyncLog-$(Get-Date -Format yyyyMMdd).xml
Syntax
Export-ActiveSyncLog -Filename <String>
[-Confirm]
[-EndDate <DateTime>]
[-Force]
[-OutputPath <String>]
[-OutputPrefix <String>]
[-StartDate <DateTime>]
[-UseGMT]
[-WhatIf]
[<CommonParameters>]
Parameters (9)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.