Hi, @Glenn Maxwell
After my testing, your syntax has no obvious errors and you are able to successfully export the required entries.
You'll need to enable audit logs for the mailboxes that need to be tracked.
Set-Mailbox -Identity user@example.com -AuditEnabled $true
Set-Mailbox (ExchangePowerShell) | Microsoft Learn
You can specify the actions you want to audit (for example, Delete and so on).
Search-MailboxAuditLog -Identity user@example.com -LogonTypes Owner -ShowDetails -StartDate 05/01/2024 -EndDate 10/22/2024 | Where-Object {$_.Operation -eq "MoveToDeleteItems"}
You can also view admin logs. Search-UnifiedAuditLog (ExchangePowerShell) | Microsoft Learn
You can still view and recover messages deleted by users in the EAC.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".