'Change MAPI profile exchange service OST file with profman/redemption

I need to do the steps 9-12 that are exlained in this KB programatically with profman/redemption on an existing exchange MAPI profile (not while it's being created).

http://support.microsoft.com/kb/2752583/en-us

Is it possible, how?

PS: I need to change the OST file to another existing OST

As always, Thanks



Solution 1:[1]

Sounds like you need to change the PR_PROFILE_OFFLINE_STORE_PATH_W property - loop through all MSEMS services in the profile, for all providers in those services, open their profile sections and if PR_PROFILE_OFFLINE_STORE_PATH property is set, replace its value.

You can see the profile data in OutlookSpy (I am its author - click IProfAdmin or IMAPISession | AdminServices.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1