Solved

How to programatically remove certain pst files from an outlook profile programatically

Posted on 2006-06-20
4
340 Views
Last Modified: 2010-04-08
I have a need to remove certain PST files from an Outlook profile programatically.  These PSt files exist on a shared network drive which is common throughout the environment.  I need a way to determine which files are on the network drive and remove only those entries from the profile.
0
Comment
Question by:DR12345
4 Comments
 
LVL 43

Accepted Solution

by:
zephyr_hex (Megan) earned 250 total points
ID: 16944588
i am not sure i understand.
you want a way to find and delete .pst files?  or are you wanting to delete a profile in Outlook?  or are you wanting to only delete certain information in a .pst file?

if you are just trying to find and delete .pst files that meet certain criteria (such as age of the file, or name of the file), you can do this with a simple batch script.
0
 
LVL 76

Assisted Solution

by:David Lee
David Lee earned 250 total points
ID: 16949965
Greetings, DR12345.

I'm not sure this is possible.  Each message store, a PST file is a message store, is represented by a MAPI.InfoStore object.  The problem is that there is no file path property for the object.  I've checked the extended, unnamed properties and still cannot find a path recorded anywhere.  Each info store is saved as a registry entry, yet there's no path information there either.  Clearly the path has to be stored somewhere for Outlook to be able to find and open the file.  But so far I'm drawing a blank on where that is.

Cheers!
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Outlook Free & Paid Tools
Find out what you should include to make the best professional email signature for your organization.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

740 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