Avatar of reirembar
reirembar
 asked on

Retrieving emails from specific sender ...

Hi,

I need to get copies of all the email sent to or received from an specific recipient/sender outside of our organization. We have one Domain Controller (Windows Server 2k3) and Exchange Server 2k7.
When I run the following powershell command:

E:\>get-mailbox -"general mailbox database" | export-mailbox -subjectkeywords "adamsmith@mydomain.com" -targetmailbox "myownmailbox" -targetfolder "exportfolder"

I get back:

Get-mailbox : The operation could not be performed because object 'general mailbox database' could not be found on domain controller XXXXX at line ..........

Could someone help me  with this?
Microsoft Applications

Avatar of undefined
Last Comment
Manpreet SIngh Khatra

8/22/2022 - Mon
Manpreet SIngh Khatra

If GeneralMailboxDatabase is a mailbox
get-mailbox "general mailbox database" | export-mailbox -subjectkeywords "adamsmith@mydomain.com" -targetmailbox "myownmailbox" -targetfolder "exportfolder"

If GeneralMailboxDatabase is a MailboxDatabase then its different

- Rancy
reirembar

ASKER
Hi Rancy,
Thanks for your answer. In this case General Mailbox Database is a database. How do I get it done in that condition?
ASKER CERTIFIED SOLUTION
Manpreet SIngh Khatra

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23