I need to configure email settings for a number of CRM online instances. I want to automate this as some of the sandbox environments will be reset periodically.
I have one instance configured manually (with our on prem exchange) so know what need to be done to get it working but I can't for the life of me seem to be able to retrieve and update the email server profile configuration. I either want to amend the default profile or create a new one.
I'm using the Microsoft.Xrm.Data.Powershell module so i'm able to retrieve entities and records but can't seem to find the specific data i'm after.
Has anybody done this before or able to point me in the right direction?