need a powershell script to copy email attachments from multiple mailboxes to a network share

can someone provide a powershell script that we can use to copy out all email attachments from a set of mailboxes to a network share?

on prem - e2013 environment.

many thanks!
siber1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AmitIT ArchitectCommented:
I know a free tool to do this. Try it
https://www.outlookfreeware.com/en/products/all/OutlookAttachmentsSave/

If you need a command line one, you can purchase the whole pack. I purchased it for Public folder migration.
0
Will SzymkowskiSenior Solution ArchitectCommented:
You could try something like the following...
$List = get-content "c:\filename.txt"
ForEach ($user in $List) 
      {

        New-MailboxExportRequest -Mailbox $user -ContentFilter {Attachment -like "*.*"} -FilePath "\\servername\share\Attachments.pst"

}

Open in new window


Will.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AmitIT ArchitectCommented:
Try Will script first, if that helps, you got your answer, else you can look for my suggestion or tool I posted.
0
siber1Author Commented:
thx will
0
Will SzymkowskiSenior Solution ArchitectCommented:
Np glad to help!

Will.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.