Hello,
Is there an option or power shell command to search and delete messages using "Date and Time" query. There are some suggestions online that I found on TechNet, but these are specific to Subject and attachment. What if you want to research by Date and Time?
Samples that I found online:
Get-Mailbox -ResultSize unlimited | Search-Mailbox -SearchQuery 'Subject:"Download this file"' -DeleteContent
Search-Mailbox -Identity "April Stewart" -SearchQuery 'Subject:"Your bank statement"' -DeleteContent
Get-Mailbox -ResultSize unlimited | Search-Mailbox -SearchQuery attachment:trojan* -TargetMailbox administrator -TargetFolder "SearchAndDeleteLog" -LogOnly -LogLevel Full
Please advise, thanks.