My organization is in the process of switching from Groupwise to Exchange and when complete we will be running on a cloud based server.
I am developing Powershell scripts to send emails using EWS. Using a local Exchange server, everything worked fine. Then I switched to using the cloud server onmicrosoft.com. Initially I thought everything was fine but eventually I determined that with the cloud server there seems to be a dependency on starting Outlook before the EWS will work. I see no such dependency with the local server.
Outlook can be left open or closed and the Powershell EWS will continue to work for a few hours but eventually it stops working until a fresh restart of Outlook is performed. Can anyone tell me why this happens and what can be done to resolve the problem?