Solved

Export-Mailbox error

Posted on 2010-08-18
5
1,137 Views
Last Modified: 2012-08-13
Trying to export mailbox contents to PST.

When I run the following it works fine:

Get-Mailbox -OrganizationalUnit "exOU" | Export-Mailbox  -SenderKeywords sender@email.com  –Enddate 08/09/2010 -PSTFolderPath C:\PST

Open in new window


When I expand the search using this:

Get-Mailbox -OrganizationalUnit "exOU" | Export-Mailbox -ContentKeywords "KEYWORD1", "KEYWORD2", "KEYWORD3", "KEYWORD4" -SenderKeywords "KEYWORDEMAIL" -RecipientKeywords "KEYWORDEMAIL" -AllowMerge -PSTFolderPath c:\PST

Open in new window


I get the following error message:

Export-Mailbox : Parameter set cannot be resolved using the specified named par
ameters.
At line:1 char:89
+ Get-Mailbox -OrganizationalUnit "exOU" | Exp
ort-Mailbox <<<<  -ContentKeywords "Keyword", "keyword", "keyword",
 "keyword" -SenderKeywords "keyword" -Recipient
Keywords "keyword" -AllowMerge -PSTFolderPath c:\PST
    + CategoryInfo          : InvalidArgument: (:) [Export-Mailbox], Parameter
   BindingException
    + FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.Exchange.Managem
   ent.RecipientTasks.ExportMailbox

I have tried removing various pieces, all with the same result.  Any suggestions?
0
Comment
Question by:stfudonny
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 32

Expert Comment

by:endital1097
ID: 33466096
did you try
-ContentKeywords "keyword1 keyword2 keyword3"
0
 

Author Comment

by:stfudonny
ID: 33466120
no, but i tried 'keyword' and "keyword"
powerGUI generated the keywords in separated format.  all documentation i have seen so far points to that as well.
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33466254
i would try without spaces
-ContentKeywords:'word1','word2','word3'

i am going to run a test shortly
0
 
LVL 32

Accepted Solution

by:
endital1097 earned 500 total points
ID: 33466327
remove the -AllowMerge as it does not work with -ContentKeywords
0
 

Author Comment

by:stfudonny
ID: 33466462
-AllowMerge was the issue.
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question