'Create outlook profile using vb.net or powershell or cmd

I've got to reconfigure 300 user profiles in the next week or two, changing their outlook from looking at the current exchange server to a new one outside of the AD.

These users are at various sites around the country and it's a logistical nightmare to do manually.

What I would like to do is write a little app which checks the logged on user, matches them in my database to grab their details, then automatically creates the mail profile for outlook to use for that user.

I know how to do the first and second steps, but creating the mail profile I have no idea how to do.

I've had a google and there doesn't seem to be much info about doing this programatically... can anyone help me out or point me in the right direction?

Even if this can be done in powershell or commandprompt that would do, as I can dynamically write that script per user before it is run.



Solution 1:[1]

Profiles can be created using Extended MAPI only (C++ or Delphi) - see IProfAdmin interface. You can see that interface in OutlookSpy (I am its author) - click IProfAdmin button.

In case of a language other than C++ or Delphi, you can use the ProfMan library (I am its author, it ships with the distributable version of Redemption, which I also authored). There are a few example on how to create profiles and add different MAPI services at http://www.dimastr.com/redemption/profman_examples.htm

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 Ryan M