Asked By Clay
15-Jan-10 09:47 AM

My environment is single domain, single forest, single Exchange 2007 SP1
server running all email services.
Question - Is there a limit to the number of keyword search terms you can
use when using the Export-Mailbox cmdlet?
Due to a legal action I need to export all email from our Exchange 2007
server that has certain keywords. I have figured out how to do this using
Exchange management shell, the export-mailbox cmdlet, and
the -contentkeywords filter. I have successfully ran several test exports
using this filter with up to 15 or 20 keywords specified. However I need
to search for about 700 keywords at once. When I try to query with several
hundred terms though it always errors out. I have formatted this command
into a ps1 script and when I view the resulting xml (log) file it looks
correct.
***error***
Export-Mailbox : Error was found for Miller, Brian (bmiller@cypressrx.com)
because: Error occurred in the step: Moving messa
ges. Failed to copy messages to the destination mailbox store with error: An
unknown error has occurred., error code: -1056749164 At
C:\export-glenn.ps1:1 char:15
+ Export-Mailbox <<<< -identity bmiller -Baditemlimit 1000 -Targetfolder
("810-99","63717-810-99","810-01","63717-810-01","040-05","63717-040-05","040-99","63717-040-99","038-30","63717-038-30"
***error***
Here is the actual script I am using minus about 700 keywords.
Export-Mailbox -identity bmiller -Baditemlimit 1000 -Targetfolder
("810-99","63717-810-99","810-01","63717-810-01","040-05","63717-040-05","040-99","etc",
I do not believe it is a permissions issue because it will run fine if I
limit the keywords. But if I put 200+ it always errors out. I do not know
if there is a limit on the number of keywords you can use or if I have
something formatted wrong in my list.
Any help is much appreciated.