Finding and Deleting Calendar Items by Category in Exchange 2010.
I've recently run into some trouble after importing some appointments into a few mailboxes, and I'm trying to find a way to search multiple mailboxes for the items and then delete them. In order to lower the odds of me deleting an item that the user created, and not my own, I'd like to filter on category, as the items I inserted all had a category of "Holiday". New-MailboxExportRequest has a -contentfilter parameter which accepts -ContentFilter {category -like "*Holiday*"}, but the deletecontent switch has been moved to search-mailbox, which does not accept the contentfilter parameter. Search-Mailbox also doesn't target a specific folder or item type, so I wouldn't be able to guarantee that all items being deleted were calendar appointments, and didn't include some message items. I'd be willing to use vbscript to do this as well, but have yet to find code examples that I can use yet. Has anyone done something like this before? Thanks!
January 24th, 2011 11:28am

I had some hope with AQS in the searchquery parameter of search-mailbox, but evidently, even though category:holiday works in Outlook Instant Search, it doesn't translate as a valid property in Powershell.
Free Windows Admin Tool Kit Click here and download it now
January 24th, 2011 12:53pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics