Jump to content

Powershell - Script to extract attachments from an email account to network location


Recommended Posts

Posted (edited)

Hi,

 

I am looking for a script to check an email account and extract all attachments to a network share?

Has anyone please by any chance already got or seen anything like this?

 

My initial searches led me to the "Get-IMAP" command and then...

 

Get-IMAP -AttachmentDirectory "C:\temp\Attachments" -User $user -Password $password -Mailbox INBOX -Server $server -view $msgId

 

But im hoping not to have to re-invent the wheel if someone already does this!

 

Thanks in advance

Edited by burgemaster

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...