Solved

PowerShell "SubjectKeywords" -- Exchange 2007 ?

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A brief introduction to what I consider to be the best editor for PowerShell.
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

840 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