Hi All
i have a meeting invite which needs to be deleted on 5000 mailboxes. The meeting invite was sent on July 24 and the meeting is scheduled to be on July 30.
The meeting subject is Test’abc Test!! The below syntax i believe should work for me. but i don't want to search the entire mailbox rather than search on July 24 to todays date and delete the meeting invite, if it searches for 5000 mailboxes it will take lot of time to delete. Experts how do i reduce the time to delete the meeting invite. How do i add the date condition.
$mbx = Import-Csv c:\temp\list.csv
foreach($mailbox in $mbx){
Search-Mailbox -Identity $mailbox.Name -SearchQuery "kind:meetings AND Subject:'Test’abc Test!!' From:user1@contoso.com" -DeleteContent -Force
}
