Exchange Online
A Microsoft email and calendaring hosted service.
6,182 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
One of my user is unable to find any emails in their Sent Items folder. I want to check the audit logs for sent items. I tried the following syntax but i am unable to figure it out. could you please guide me with the correct syntax?
$date=((get-date).AddDays(-90)).ToShortDateString()
$Today=(get-date).ToShortDateString()
Search-MailboxAuditLog ******@contoso.com -LogonTypes Admin,Owner,Delegate -ShowDetails -StartDate $date -EndDate $Today | Export-CSV C:\temp\logs.csv –NoTypeInformation -Encoding UTF8