So I have Exchange 2010 running EXO hybrid, and have mail enabled public folders synced. I have been running the sync-mailpublicfolder.ps1 scripts 2 to 3 times a week fine for at least a year now. Then all of a sudden since last week, I am getting error messages every time I run the scripts. The error is
InitializeExchangeOnlineRemoteSession : Unable to create a remote shell session to Exchange Online. The error is as follows: "Connecting to remote server failed with the following error message : The SSL connection cannot be established. Verify that the service on the remote host is properly configured to listen for HTTPS requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig -transport:https". For more information, see the about_Remote_Troubleshooting Help topic.". At C:\pfscripts\Sync-MailPublicFolders.ps1:506 char:42
+ InitializeExchangeOnlineRemoteSession <<<< ;
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId :
Any idea how to fix this?