Exchange Online Remote PowerShell is not exactly what you'd call reliable, especially when it comes to long-running scripts. The best advise I can give you is to go over this article and the recommendations therein: https://techcommunity.microsoft.com/t5/exchange-team-blog/running-powershell-cmdlets-for-large-numbers-of-users-in-office/ba-p/604280
Switching to the "V2" module and the REST-based cmdlets where possible will also help: https://learn.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps
Exchange online powershell gets failed sometimes
Hi,
Sometimes in middle of execution pf a script the exchange online cmdlet gets disconnected stating
ERROR: Processing data from remote server outlook.office365.com 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.
The instruction asks to check on the remote server, On office365 case, I have no idea how to troubleshoot it
-
Vasil Michev 104K Reputation points MVP
2022-02-22T06:59:05.833+00:00