Commands › Exchange Online
Get-CalendarDiagnosticLog
Although In cloud-based service, use the Get-CalendarDiagnosticObjects cmdlet instead. Use the Get-CalendarDiagnosticLog cmdlet to collect a range of calendar logs. The Calendar Diagnostic logs track all calendar items and meeting requests in mailboxes. You can use this information to troubleshoot calendar issues that occur in mailboxes.
Quick start script
# Get-CalendarDiagnosticLog — 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-CalendarDiagnosticLog -Identity <MailboxIdParameter> -LogLocation <String> -MeetingID <String> | Format-List
# 3. Export for evidence / drift tracking
Get-CalendarDiagnosticLog | Export-Clixml .\CalendarDiagnosticLog-$(Get-Date -Format yyyyMMdd).xml
Syntax — 3 parameter sets
MeetingId
Get-CalendarDiagnosticLog [-Identity] <MailboxIdParameter> -MeetingID <String>
[-Credential <PSCredential>]
[-DomainController <Fqdn>]
[-LogLocation <String>]
[-ReadFromDomainController]
[-ResultSize <Unlimited>]
[<CommonParameters>]
MeetingSubject
Get-CalendarDiagnosticLog [-Identity] <MailboxIdParameter> -Subject <String>
[-Credential <PSCredential>]
[-DomainController <Fqdn>]
[-LogLocation <String>]
[-ReadFromDomainController]
[-ResultSize <Unlimited>]
[<CommonParameters>]
ExportToMsg
Get-CalendarDiagnosticLog [-Identity] <MailboxIdParameter> -LogLocation <String>
[-Credential <PSCredential>]
[-DomainController <Fqdn>]
[-EndDate <ExDateTime>]
[-EntryId <String>]
[-ExactMatch <Boolean>]
[-ItemClass <String[]>]
[-ItemIds <String[]>]
[-Latest]
[-MeetingID <String>]
[-ReadFromDomainController]
[-ResultSize <Unlimited>]
[-StartDate <ExDateTime>]
[-Subject <String>]
[<CommonParameters>]
Parameters (15)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.