Solved

PowerShell "SubjectKeywords" -- Exchange 2007 ?

Posted on 2014-09-04
1
730 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
1 Comment
 
LVL 40

Accepted Solution

by:
Subsun earned 500 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Powershell knowledge 2 33
Identify disabled AD users with PowerShell 6 39
Filter IP range with PowerShell 1 29
Exchange, script 10 14
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
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 an Accepted Domain 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 >> Ac…
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…

862 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

25 Experts available now in Live!

Get 1:1 Help Now