Solved

Export-Mailbox error

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exchange 2016 CU5 upgrade stuck 9 75
ADFS:  Step by Step to enable MFA with ADFS 16 42
Error on OWA 2016 14 21
Outlook PST (cloud) backup 3 29
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…
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
To show how to create a transport rule 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 >> Rules tab.:  To cr…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

733 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