Export-Mailbox filters moves all messages and then removes what doesn't match filter?
I am trying to find all messages which meet a criterion and delete them. I use the command as such: get-mailbox |where { $_.DisplayName -ne "administrator" } | export-mailbox AttachmentFilenames "2007 Points Final" -StartDate "03/01/08" EndDate "03/07/08"-TargetFolder "FoundMessages" -TargetMailboxadministrator -DeleteContent It works for the most part, but it takes forever to run. It seems to be moving 100% of the messages into my FoundMessages folder and then removing everything which does not meet my criterion. This is nuts! Does anyone know if this is how this thing is supposed to work? I see the messages going in and then dissappearing and it died on a few mailboxes and left behind all the mail. My administrator mailbox now has 300K+ messages in it and tens of thousands of folders as it created the entire folder structure of every mailbox whether it found anything or not.
March 9th, 2008 11:48pm

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

Other recent topics Other recent topics