• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 17
  • Last Modified:

search Attachments Send items Exchange 2010 SP3 Roll 7 (SBS2011)


We have an customer who wants to know if an specific file (xxx.pdf) was send by e-mail.
We don't know the sender and reciever.
It was send this last two weeks.

Is it posible to search the send items of all the mailboxes on the server?

What will the syntacs then be?

1 Solution
Guy LidbetterCommented:
Hi NCAuto,

Try this

Get-Mailbox -ResultSize Unlimited | Search-Mailbox -SearchQuery 'attachment:"<filename>.pdf"' -TargetMailbox <Your Mailbox> -TargetFolder <A folder in your mailbox i.e "Found">

This will search all mailboxes and send a copy of anything found into your own mailbox under the folder you specify. It will create the destination folder so you don't need to pre-create it.


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now