Windows Server 20xx Essentials cannot connect to O365.
I found this cheat to reset the connection between the Essentials Server Dashboard and O365.
First check the log to find out why it’s failing. Log file is found here:
C:\ProgramData\Microsoft\Windows Server\Logs\SharedServiceHost-EmailProviderServiceConfig.log
If log looks something like the below, then follow steps to fix:
BecWebServiceAdapter: Connect to BECWS failed due to known exception : System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at https://bws902-relay.microsoftonline.com/ProvisioningWebservice.svc?Redir=1098557810&Time=636356539931802459 that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. —> System.Net.WebException: Unable to connect to the remote server —> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused
To fix:
Open Regedit and navigate to the following key:
HKEY_Local_Machine\Software\Microsoft\Windows Server\Productivity\O365Integration\Settings
Delete the BecEndPointAddress key.
Close Regedit and re-open the Essentials Dashboard. Re-attempt to integrate with O365 and this time it should work.