Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Using powershell to manipulate mapi profile and PST file locations

$
0
0

I have a situation whereby I need to move a bunch of PST files out of the default location in Office 2010 and change the mapi profile for the user so that the pst file location updated so the user doesn't experience any issues when launching Outlook.

My logic flow is as follows:

1.) locate All pst files referenced in the logged on users MAPI profile.

2.) Move these files to a another directory eg. c:\users\%username%\OutlookFiles

3.) Update the MAPI profile to point to the new location so that when the user launches Outlook he doesn't notice that the files have been moved.

I know how to copy the files using powershell etc. but how on earth do you query the MAPI profile to locate the pst files and then change each entry for a PST file to point to the new location.

Anyone got any ideas?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>