MAPI is the only supported way to programmatically change profiles
Original KB number: 266352
Summary
The only supported way to modify MAPI profiles programmatically is through Extended MAPI. The values that are written into the registry by MAPI are not documented, and direct manipulation of these values through the registry application programming interfaces (APIs) is not supported.
More information
The keys and values that make up a MAPI profile depend on the various providers that make up the profile. Because providers are not required to document the properties that they write or the relationship of the properties to one another, modifying these values directly can have unpredictable and adverse effects.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for