From: Clay on
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(a)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
"conrad" -targetmailbox "ITadmin" -AllContentKeywords
("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
"conrad" -targetmailbox "ITadmin" -AllContentKeywords
("810-99","63717-810-99","810-01","63717-810-01","040-05","63717-040-05","040-99","etc",
"etc")

I don't 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 don't 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.


From: Clay on
Any other thoughts on how to approach my issue? I just need to search the
all mailboxes against a long list of search terms.


"Clay" <clay(a)clayware.com> wrote in message
news:%23%23VviGflKHA.2680(a)TK2MSFTNGP04.phx.gbl...
> 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(a)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
> "conrad" -targetmailbox "ITadmin" -AllContentKeywords
> ("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
> "conrad" -targetmailbox "ITadmin" -AllContentKeywords
> ("810-99","63717-810-99","810-01","63717-810-01","040-05","63717-040-05","040-99","etc",
> "etc")
>
> I don't 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 don't 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.
>


From: Ed Crowley [MVP] on
Why not run multiple exports?
--
Ed Crowley MVP
"There are seldom good technological solutions to behavioral problems."
..

"Clay" <clay(a)clayware.com> wrote in message
news:Op9JzIGmKHA.5040(a)TK2MSFTNGP06.phx.gbl...
> Any other thoughts on how to approach my issue? I just need to search
> the all mailboxes against a long list of search terms.
>
>
> "Clay" <clay(a)clayware.com> wrote in message
> news:%23%23VviGflKHA.2680(a)TK2MSFTNGP04.phx.gbl...
>> 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(a)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
>> "conrad" -targetmailbox "ITadmin" -AllContentKeywords
>> ("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
>> "conrad" -targetmailbox "ITadmin" -AllContentKeywords
>> ("810-99","63717-810-99","810-01","63717-810-01","040-05","63717-040-05","040-99","etc",
>> "etc")
>>
>> I don't 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 don't
>> 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.
>>
>
>

From: Clay on
That should work to get the data exported. It may take considerably longer
(depending on the limit of the keyword search) but that may be my only
option.

If I was able to do the search with all terms I would end up with one
mailbox with a folder for each user in my DB with all relevant messages to
the search inside that folder.

If I run multiple searches (lets say 10) then I will end up with ten folders
for each person (each of these folders will contain each users mailbox
folder heirarchy underneath). Any suggestion how to consolidate these down
to one folder per person? Is there a switch I can use to re-export all
messages to a single folder?

"Ed Crowley [MVP]" <curspice(a)nospam.net> wrote in message
news:uRRTAdGmKHA.2780(a)TK2MSFTNGP05.phx.gbl...
> Why not run multiple exports?
> --
> Ed Crowley MVP
> "There are seldom good technological solutions to behavioral problems."
> .
>
> "Clay" <clay(a)clayware.com> wrote in message
> news:Op9JzIGmKHA.5040(a)TK2MSFTNGP06.phx.gbl...
>> Any other thoughts on how to approach my issue? I just need to search
>> the all mailboxes against a long list of search terms.
>>
>>
>> "Clay" <clay(a)clayware.com> wrote in message
>> news:%23%23VviGflKHA.2680(a)TK2MSFTNGP04.phx.gbl...
>>> 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(a)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 "conrad" -targetmailbox "ITadmin" -AllContentKeywords
>>> ("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
>>> "conrad" -targetmailbox "ITadmin" -AllContentKeywords
>>> ("810-99","63717-810-99","810-01","63717-810-01","040-05","63717-040-05","040-99","etc",
>>> "etc")
>>>
>>> I don't 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 don't
>>> 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.
>>>
>>
>>
>