Link to home
Create AccountLog in
Avatar of dougdog
dougdog

asked on

how to search multiple exchange databases for a received email and move them to a specific folder

is it possible to search 4 mailbox databases on exchange 2007
for an email from a specific sender
and either delete them all
and give a report how many were deleted
Avatar of Manpreet SIngh Khatra
Manpreet SIngh Khatra
Flag of India image

There is no Search feature like we have in Exchange 2010

https://www.experts-exchange.com/questions/25891756/powershell-delete-specific-emails.html
Export-Mailbox "UserMailbox" -Senderkeywords "senderemail" -Deletecontent

http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/ec8fec31-bafa-42c0-b9ed-cd328747391d

- Rancy
Avatar of dougdog
dougdog

ASKER

so what would be the exact command i would need to search all databases for an email sent from sender@yahoo.co.
and move them into a folder called recall on my mailbox
Avatar of dougdog

ASKER

or if that cant be done just delete all emails from the sender
SOLUTION
Avatar of Manpreet SIngh Khatra
Manpreet SIngh Khatra
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of dougdog

ASKER

will this search mailboxes on 2007 and 2010
I was around 80% on 2007

and 20% on 2010

also would this command be safe to run
I was a little worries when it started saying moving and deleting

Get-Mailbox | Export-Mailbox -SubjectKeywords "movinghouse" -DeleteContent
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account