Hi,
I am using the following command for deletion of mailbox contents but it also delete Contacts and Calendars Items.
Search-mailbox -identity test12 -searchquery {received:01/01/2000..04/30/2018} -deletecontent
How i can exclude folder as it doesn't support "-Exclude Folder"
and on the other side "New-MailboxSearch" doesnt support "-deletecontent".
My objective to delete all the contents from mailbox except contacts and calenders.
Regards
Usman Ghani
Usman Ghani - MCITP Exchange 2010