In some training lab, I need to create some scripts to automate the Outlook 2016 e-mail client configuration in some cloud deployments (done from the same template), so, the users will log on their Windows 7 and will have a generic student emails already configured in their Outlook 2016.
Alternatively, Ansible is also an option, although I could not find a way to do that using it.
There is no Exchange, just an e-mail server is another local VM, already configured, that will be deployed also before each training (so, reused, but clean mail accounts).
I was trying to use Office Customization Tool with Outlook .prf profiles (as shown in this local thread, nice, but not valid anymore since the Office 2016 release), but it looks like in v. 2016 this is not supported anymore in favour of Exchange Autodiscover, according to this thread:
"you can still use a PRF for your on-premises environments and Outlook 2013 or earlier versions".
But for Outlook 2016, PRF is no longer supported due to the changes to how Exchange Autodiscover information is stored in parallel with an Outlook profile.
"PRF files do not work and are no longer needed in Outlook 2016 because accounts should be configured automatically in the account wizard when you use AutoDiscover."
Does someone know a way to automate the Outlook 2016 e-mail account configuration during the user first login, please?