Link to home
Start Free TrialLog in
Avatar of sawmillsam
sawmillsam

asked on

Code to open PST in an Outlook 2003 profile

We are migrating users from locally stored pst files to Exchange profiles using a deployed PRF.

We are not going to import the data in the PST files for the users rather we will ask them to open the PST in the newly created exchange file and copy/paste any data they wish to keep from the old PST into the new OST mailbox.  (Opening the file would normally be accomplished using File->Open->Outlook data file... on the file menu).

Assuming all users' PSTs are stored in a default directory, is there any code (vbs or batch file) that can automate "opening" the pst for the user such that before the user first logs into Outlook under the new Exchange profile, the user's old PST is already opened\added as an additional "Personal Folders" directory?

Thanks,

cjr
Avatar of David Lee
David Lee
Flag of United States of America image

Hi, sawmillsam.

It is possible to add a PST file to an Outlook profile via scripting.  But, that can't be done without opening Outlook.  The user would need to be logged in to do this.  If that's not a show stopper, then I'll be glad to post the code for doing this.
Avatar of sawmillsam
sawmillsam

ASKER

Thanks for the comment, BlueDevilFan.  I would be interested in seeing that code - so is it just VBA code then?  Is it not something that could be added to/called from a batch file that also executes a PRF on the local client's machine?  That is, the batch (executed by a logged in user) waits for the PRF execution to finish (Outlook remains open upon its completion) and then this next bit of code to add the PST runs.  Thanks, again.
ASKER CERTIFIED SOLUTION
Avatar of David Lee
David Lee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This worked perfectly.  Thanks for your time and knowledge.  
You're welcome.  I'm glad I could help out.