We are in the process of migrating accounts to O365 and we are running into 2 small issues. I have found the fix and manually applied it but can use some help with automating this.
1- We use the domainusername to authenticate all accounts to AD, with the migration to O365 we will be using UPN instead which is firstinitiallastname@domain.com, the fix has been to manually change that in the user's Outlook preferences.
2- When Microsoft Outlook 2016 for Mac connects to a Microsoft 365 account, Autodiscover is redirected from HTTP to HTTPS, this is causing a bunch of autodiscover warning messages to occur.
The fix is:
a- Quit Outlook
b-Open terminal and run this command:
defaults write com.microsoft.Outlook TrustO365AutodiscoverRedirect -bool true
Can these two fixes be applied together within one policy or do I need to separate them, Any help with is much appreciated.
Thanks

