Solved

Export-Mailbox error

Posted on 2010-08-18
5
1,129 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
  • 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

Too many email signature updates to deal with?

Do you feel like you are taking up all of your time constantly visiting users’ desks to make changes to email signatures? Wish you could manage all signatures from one central location, easily design them and deploy them quickly to users? Well, there is an easy way!

Join & Write a Comment

Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
In this video we show how to create a Contact 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 Recipients >> Contact ta…
In this video we show how to create an email address policy 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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now