Solved

Export-Mailbox error

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
In this video we show how to create a Shared Mailbox 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 >> Sha…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

860 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