Solved

PowerShell "SubjectKeywords" -- Exchange 2007 ?

Posted on 2014-09-04
1
766 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 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

Office 365 Training for IT Pros

Learn how to provision Office 365 tenants, synchronize your on-premise Active Directory, and implement Single Sign-On.

Question has a verified solution.

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

In-place Upgrading Dirsync to Azure AD Connect
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
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 a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

738 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