Solved

Script to extract attatchments from a .PST file

Posted on 2014-11-11
1
397 Views
Last Modified: 2014-11-25
A user has requested us to extract attached image files from a large amount of emails on outlook. Their are duplicate names (i.e. Image001) which has made either extracting manually or running a VB script through outlook fail due to the script overriding the duplicates. Is there a powershell or VB script to extract these for us from a .PST file? Any methods to remove the attachments from emails would be appreciated, thanks.
0
Comment
Question by:GR JN
1 Comment
 
LVL 14

Accepted Solution

by:
Alexei Kuznetsov earned 500 total points
ID: 40437437
Although you can write such a script, it requires advanced skills. Moreover, you can't actually process PST files as is. And if you say "any methods" are ok, then I can recommend the free Save Attachments utility: it does exactly what you want. You can specify the required file mask(s) (for example: *.jpg;*png;*.gif), set target folder and clear "Overwrite existing files" check to force the utility to rename the duplicates. After that you can use the free Remove Attachments utility to remove the unneeded attachments. Or you can just Replace Attachments with Links (no need to separately save/remove then).

DISCLAIMER: I recommend these utilities because I'm one of the developers, so feel free to ask any further questions.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Many people use more than one email account and so it becomes difficult for them to manage them when they use separate accounts,  so, in this article, I have shared an easy way to add Other Mail Accounts in your Google Inbox. It helps to combine all…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question