PowerShell Command for Autodiscover in a Microsoft 365 Environment
When using Microsoft 365 applications for the Outlook client, Autodiscover may occasionally fail to detect the correct configuration.
To resolve this issue, simply download the script corresponding to your Outlook version and run it.
Before executing the script, make sure to modify the domain used for Autodiscover in the file.
Important: Enter shex.optimails.com as the discovery domain.