Commands › Exchange Online

Export-ActiveSyncLog

Exchange Online ExchangeOnlineManagement Export-*

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)

ParameterTypeRequiredWhat it controls
-Filename String yes The Filename parameter specifies the name of the input file.
-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.
-EndDate DateTime The EndDate parameter specifies the end date of the date range of the report.
-Force SwitchParameter The Force switch hides warning or confirmation messages. You don't need to specify a value with this switch.
-OutputPath String The OutputPath parameter specifies the name and location for the output file.
-OutputPrefix String The OutputPrefix parameter specifies a prefix to append to the name of the output file.
-StartDate DateTime The StartDate parameter specifies the start date of the date range for the report.
-UseGMT SwitchParameter The UseGMT switch specifies that Coordinated Universal Time (Greenwich Mean Time) is used for the time in the report output. You don't need to specify a value with this switch.
-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.