Using Get-CalendarDiagnosticLog in Powershell: Guide+Examples

5 min read James Futhey First published September 4, 2025
Microsoft Learn documentation for the Get-CalendarDiagnosticLog cmdlet showing its PowerShell syntax

Quick answer: Get-CalendarDiagnosticLog returns the calendar diagnostic logs (CDLs) for a meeting in an on-premises Exchange mailbox: the record of every create, update, response and delete on that calendar item. To pull the log for one meeting by its exact subject:

Get-CalendarDiagnosticLog -Identity john@contoso.com -Subject "Weekly development meeting" -ExactMatch $true

On Exchange Online? Microsoft says this cmdlet only works in on-premises Exchange. In Exchange Online, use Get-CalendarDiagnosticObjects instead; it reads the same logs and supports the same kind of subject and meeting ID searches:

Get-CalendarDiagnosticObjects -Identity john@contoso.com -Subject "Weekly development meeting" -ExactMatch $true

What Get-CalendarDiagnosticLog returns

Exchange keeps a calendar diagnostic log entry each time a calendar item or meeting request in a mailbox changes. When a meeting goes missing, moves, or shows the wrong attendees, these logs tell you what happened, when, and from which client.

Each result includes:

Property What it tells you
Identity The log entry, as an excallog:// address for the mailbox
LogDate When the entry was written
NormalizedSubject The meeting subject
CleanGlobalObjectId The meeting ID. It stays the same for the life of the meeting, so use it to follow one meeting across mailboxes
IsFileLink Whether the entry was exported to a .msg file with -LogLocation

Syntax

The cmdlet has three parameter sets. You pick a meeting by ID, by subject, or export matching items to .msg files:

# By meeting ID
Get-CalendarDiagnosticLog [-Identity] <MailboxIdParameter> -MeetingID <String> [-ResultSize <Unlimited>]

# By subject
Get-CalendarDiagnosticLog [-Identity] <MailboxIdParameter> -Subject <String> [-ExactMatch <Boolean>] [-ResultSize <Unlimited>]

# Export to .msg (Exchange 2010 and 2013 only)
Get-CalendarDiagnosticLog [-Identity] <MailboxIdParameter> -LogLocation <String>
  [-Subject <String>] [-MeetingID <String>] [-StartDate <ExDateTime>] [-EndDate <ExDateTime>]
  [-Latest] [-ExactMatch <Boolean>] [-ItemIds <String[]>] [-EntryId <String>] [-ItemClass <String[]>]

-Credential, -DomainController and -ReadFromDomainController are available in every set.

Parameters

Parameter What it does Notes
-Identity The mailbox to read Required. Name, alias, email address, UPN or GUID
-Subject Finds meetings by subject Not case sensitive. No wildcards. Don't combine with -MeetingID
-ExactMatch $true matches the subject exactly Exchange 2016 and later. The default ($false) is a partial match that checks at most 1,000 items and can miss some
-MeetingID Finds one meeting by its CleanGlobalObjectId Takes priority over -Subject
-StartDate, -EndDate Limits results to a date range Exchange 2013 and later. Use your short date format; quote the value if it includes a time
-Latest Returns only the most recent matching item Exchange 2013 and later
-ItemIds, -EntryId Targets specific items Exchange 2016 and later. Separate values with commas
-ItemClass Filters by message class, such as IPM.Appointment Exchange 2016 and later. Used with -MeetingID
-LogLocation Exports matching items to .msg files in a local or UNC folder Works in Exchange 2010 and 2013 only. Removed from Exchange 2016 and 2019 by the 2022 H1 cumulative updates
-ResultSize Caps the number of results Maximum 1,000
-DomainController, -ReadFromDomainController, -Credential Control which domain controller and account are used On-premises options

You need permissions assigned to run the cmdlet, and some parameters may be hidden depending on your role. Microsoft's article Find the permissions required to run any Exchange cmdlet shows how to check which role you need.

Examples

1. Get the log for one meeting by exact subject

Get-CalendarDiagnosticLog -Identity john@contoso.com -Subject "Weekly development meeting" -ExactMatch $true

-ExactMatch $true searches every item in the mailbox, so it won't miss a meeting the way a partial match can.

2. Get every log entry in a date range

Get-CalendarDiagnosticLog -Identity john@contoso.com -StartDate "11/1/2026 6:00 AM" -EndDate "11/15/2026 6:00 PM"

3. Get only the latest matching meeting

Get-CalendarDiagnosticLog -Identity john@contoso.com -Subject "Weekly development meeting" -Latest

Useful for a recurring meeting name that has been reused many times.

4. Find a meeting ID, then follow it across mailboxes

First get the CleanGlobalObjectId from the organizer's mailbox:

Get-CalendarDiagnosticLog -Identity john@contoso.com -Subject "Budget review" -ExactMatch $true |
  Select-Object LogDate, NormalizedSubject, CleanGlobalObjectId

Then use it to pull the same meeting from an attendee's mailbox. A meeting ID returns only that meeting, so there is no subject guessing:

$id = "<CleanGlobalObjectId from the step above>"
Get-CalendarDiagnosticLog -Identity robert@contoso.com -MeetingID $id

Compare the two timelines. If the organizer's log shows an update the attendee's log never received, the problem is delivery, not the attendee's client.

5. Save the results to a file

Get-CalendarDiagnosticLog -Identity john@contoso.com -Subject "Budget review" -ExactMatch $true |
  Export-Csv C:\Temp\budget-review-cdl.csv -NoTypeInformation

Saving to a variable or file also works around a known problem: Microsoft notes that commands can fail on calendar items that have no title.

6. Export to .msg files (Exchange 2013)

Get-CalendarDiagnosticLog -Identity john@contoso.com -Subject "Budget meeting" -ExactMatch $true -LogLocation "C:\My Documents\Calendar Diagnostic Export"

Exchange creates a subfolder named after the mailbox (here john@contoso.com) and saves each item as a .msg file. You can then analyze the files with Get-CalendarDiagnosticAnalysis. This doesn't work in Exchange 2016 or 2019, where -LogLocation is no longer available.

Get-CalendarDiagnosticLog vs Get-CalendarDiagnosticObjects

Get-CalendarDiagnosticLog Get-CalendarDiagnosticObjects
Works in On-premises Exchange Exchange Online
Find a meeting by Subject or meeting ID Subject or meeting ID
Export .msg files with -LogLocation (2010 and 2013) Pipe to Export-Csv
Guide This page Get-CalendarDiagnosticObjects guide

For Exchange Online, Microsoft also offers a summary script that turns the raw logs into a timeline workbook, and a no-PowerShell option in the Exchange admin center (Troubleshoot > Collect Logs > Calendar). Both are covered in Get Calendar diagnostic logs for Exchange Online mailboxes. In Exchange Online, the logs are removed after 31 days, so collect them soon after the problem happens.

Troubleshooting

"The term 'Get-CalendarDiagnosticLog' is not recognized" in Exchange Online PowerShell: the cmdlet only works on-premises. Use Get-CalendarDiagnosticObjects.

No results for a meeting you know exists: the default subject search is a partial match over at most 1,000 items. Add -ExactMatch $true, or search by -MeetingID.

-LogLocation isn't accepted: you're on Exchange 2016 or 2019 with the 2022 H1 cumulative update or later, which removed it. Pipe the results to Export-Csv instead.

The command fails partway through: a calendar item with no subject can cause this. Save the results to a variable or file as in example 5.

-StartDate or -ExactMatch is rejected: check your Exchange version. Date filters need Exchange 2013 or later, and -ExactMatch, -ItemIds and -ItemClass need 2016 or later.

FAQ

Does Get-CalendarDiagnosticLog work in Exchange Online? No. Microsoft says it only works in on-premises Exchange. Use Get-CalendarDiagnosticObjects in Exchange Online.

What is the meeting ID? The CleanGlobalObjectId value. It stays the same for the life of the meeting and is the same in the organizer's and attendees' mailboxes, so it's the most reliable way to follow one meeting.

How do I see who changed a meeting? Pull the log by meeting ID and read the entries in date order. Each change gets an entry, with the client that made it.

Can I export the logs? On Exchange 2010 and 2013, -LogLocation saves .msg files. On any version, pipe the results to Export-Csv.


Calendar logs explain why a room booking went wrong after the fact. Meeting Room 365 shows the live room calendar on a display outside the room, so people see a booking change the moment it happens. For room mailbox settings, see our guide to Get-CalendarProcessing.

Add a display to your office

Every room, on the door.

Live availability on every meeting room. Works with Microsoft 365, Exchange and Google Workspace.