Solved

Export-Mailbox error

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

This article will help you understand what HashTables are and how to use them in PowerShell.
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
This video discusses moving either the default database or any database to a new volume.

777 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