?
Solved

PowerShell "SubjectKeywords" -- Exchange 2007 ?

Posted on 2014-09-04
1
Medium Priority
?
789 Views
Last Modified: 2014-09-05
How can I change the below Exchange 2007
PowerShell "abc123" command to do something
like "abc123" or "def456" or "xyz978" since
I need to search for three different keywords
via an "OR" statement ?

get-mailbox
–Database CorpMail |
Export-Mailbox
–SubjectKeywords "abc123"
–TargetMailbox myMailbox
–TargetFolder 'MyData'
0
Comment
Question by:finance_teacher
[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
1 Comment
 
LVL 40

Accepted Solution

by:
Subsun earned 2000 total points
ID: 40303582
Following code should work for you..
get-mailbox -Database CorpMail | Export-Mailbox –SubjectKeywords "abc123","def456","xyz978" –TargetMailbox myMailbox –TargetFolder 'MyData'

Open in new window

0

Featured Post

WatchGuard's M Series Appliances - Miecom Approved

WatchGuard's newest M series appliances were put to the test by Miercom.  We had great results and outperformed all of our competitors in both stateless and stateful traffic throghput scenarios! Ready to see how your UTM appliance stacked up? Download the Miercom Report!

Question has a verified solution.

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

Check out this step-by-step guide for using the newly updated Experts Exchange mobile app—released on May 30.
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
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…
This video discusses moving either the default database or any database to a new volume.
Suggested Courses

752 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